
/* 
整体页面样式设计，融合未来感与高级质感
*/

/* 基础样式设置 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  color: #ffffff;
  line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(44, 62, 80, 0.9);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar a {
  color: #ecf0f1;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #e67e22;
}

/* 主内容容器 */
.container {
  display: flex;
  flex-wrap: wrap;
  padding: 100px 50px 50px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 左侧面板样式 */
.left-panel {
  flex: 1;
  min-width: 300px;
  background: url('https://images.gptkong.com/demo/sample1.png') center center no-repeat;
  background-size: cover;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  margin: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-panel:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* 右侧面板样式 */
.right-panel {
  flex: 1;
  min-width: 300px;
  background: rgba(44, 62, 80, 0.8);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  margin: 10px;
  position: relative;
}

.right-panel h2, .right-panel h3, .right-panel h4 {
  color: #ffffff;
}

.right-panel p {
  color: #d1d1d1;
  font-size: 16px;
}

/* 提示信息 */
.prompt {
  position: absolute;
  top: -30px;
  left: 0;
  background: #e67e22;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
  color: #ffffff;
}

/* 模块化设计 */
.module {
  background: rgba(52, 73, 94, 0.9);
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.module:hover {
  background: rgba(52, 73, 94, 1);
  transform: translateY(-5px);
}

/* 图片样式 */
img.decorative {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.decorative:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 100px 20px 20px 20px;
  }

  .left-panel, .right-panel {
    min-width: 100%;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar a {
    margin: 10px 0;
  }
}

/* 代码块样式 */
pre code {
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 10px;
  display: block;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  color: #f1c40f;
  margin: 20px 0;
}

/* 手风琴效果样式 */
.accordion {
  width: 100%;
  border: 1px solid #95a5a6;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #95a5a6;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 15px;
  background: #2980b9;
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #3498db;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #34495e;
  padding: 0 15px;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  padding: 15px;
}

/* 动画效果 */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.1); opacity: 0.5; }
}

.chart::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #e67e22;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: pulse 2s infinite;
}

/* 按钮样式 */
button, .chat-button {
  background: #27ae60;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

button:hover, .chat-button:hover {
  background: #2ecc71;
  transform: scale(1.05);
}

/* 交互提示 */
.interactive:hover {
  color: #e67e22;
  text-decoration: underline;
}

/* 点缀色使用 */
.highlight {
  color: #f1c40f;
}

/* 字体大小 */
h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

p, li, span {
  font-size: 16px;
}

/* 面包屑导航样式 */
.breadcrumb {
  background: transparent;
  padding: 10px 20px;
  font-size: 14px;
}

.breadcrumb a {
  color: #ecf0f1;
  text-decoration: none;
  margin-right: 5px;
}

.breadcrumb a:hover {
  color: #e67e22;
}

.breadcrumb span {
  color: #bdc3c7;
}

/* 滚动动画 */
.scroll-animation {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 按钮旋转动画 */
.rotate {
  transition: transform 0.6s;
}

.rotate:hover {
  transform: rotate(360deg);
}

/* 固定聊天按钮 */
.chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 24px;
}

/* 分隔线样式 */
.separator {
  border: 0;
  height: 1px;
  background: #2c3e50;
  margin: 20px 0;
}

/* 阴影效果 */
.shadow {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 过渡效果 */
.transition {
  transition: all 0.3s ease;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table, th, td {
  border: 1px solid #7f8c8d;
}

th, td {
  padding: 10px;
  text-align: left;
}

th {
  background: #2980b9;
}

td {
  background: #34495e;
}

/* 表单样式 */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

/* 按钮样式 */
.submit-button {
  background: #27ae60;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-button:hover {
  background: #2ecc71;
}

/* 背景渐变 */
.background-gradient {
  background: linear-gradient(45deg, #2c3e50, #4ca1af);
}

/* 页面底部样式 */
.footer {
  background: rgba(44, 62, 80, 0.9);
  padding: 20px 30px;
  text-align: center;
  color: #bdc3c7;
}

/* 聊天窗口样式 */
.chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 300px;
  height: 400px;
  background: #2c3e50;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
}

.chat-header {
  background: #2980b9;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.chat-input {
  padding: 10px;
  border-top: 1px solid #95a5a6;
}

.chat-input input {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 5px;
}

/* 展开折叠内容 */
.collapsible {
  cursor: pointer;
  padding: 10px;
  background: #2980b9;
  color: #ffffff;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  transition: background 0.3s ease;
  width: 100%;
}

.collapsible:hover {
  background: #3498db;
}

.content {
  padding: 0 15px;
  display: none;
  overflow: hidden;
  background: #34495e;
}

/* 点缀色应用 */
.dot {
  height: 10px;
  width: 10px;
  background-color: #f1c40f;
  border-radius: 50%;
  display: inline-block;
}

/* 页脚样式 */
.footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px 0;
  text-align: center;
}

/* 表单按钮样式 */
button.submit-button {
  background: #e67e22;
}

button.submit-button:hover {
  background: #d35400;
}


