
/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 字体设置 */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0A66C2, #6610F2);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 容器布局 */
.container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  animation: aurora-move 15s linear infinite;
}

/* 分屏布局 */
.left-panel, .right-panel {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

.left-panel {
  background: rgba(10, 102, 194, 0.8);
  position: relative;
}

.right-panel {
  background: rgba(51, 51, 51, 0.8);
  color: #FF6F61;
  position: relative;
}

/* 标题样式 */
.header {
  text-align: center;
  margin-bottom: 20px;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 按钮样式 */
button {
  background: linear-gradient(90deg, #FF6F61, #FF9800);
  border: none;
  padding: 12px 24px;
  color: #ffffff;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 111, 97, 0.4);
}

/* 图片样式 */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.images-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s;
}

.images-grid img:hover {
  transform: scale(1.1);
}

/* 示例展示样式 */
.example-section {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
}

.example-section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #4CD964;
}

.example-section pre {
  background: #333333;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

.example-section code {
  color: #FF9800;
  font-family: 'Courier New', Courier, monospace;
}

/* 代码块样式 */
.code-block {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin-top: 20px;
}

.code-block pre {
  color: #dcdcdc;
  font-family: 'Source Code Pro', monospace;
}

/* 动画效果 */
@keyframes aurora-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 适应不同屏幕尺寸 */
@media (max-width: 1440px) {
  .header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 1200px) {
  .left-panel, .right-panel {
    padding: 30px;
  }
}

@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .left-panel, .right-panel {
    padding: 20px;
  }

  .header h1 {
    font-size: 2rem;
  }

  button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.5rem;
  }

  .images-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
  }

  button {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 320px) {
  .header h1 {
    font-size: 1.2rem;
  }

  .images-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
  }

  button {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
}

/* 链接样式 */
a {
  color: #4CD964;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 文章样式 */
.article {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  margin-top: 20px;
}

.article h2, .article h3, .article h4 {
  color: #FF6F61;
  margin-bottom: 10px;
}

.article p, .article ul, .article li {
  color: #ffffff;
  margin-bottom: 15px;
}

.article ul {
  list-style-type: disc;
  padding-left: 20px;
}

.article code {
  background: #333333;
  padding: 2px 4px;
  border-radius: 4px;
  color: #FF9800;
}

.article pre {
  background: #1e1e1e;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

.article pre code {
  color: #dcdcdc;
}

/* 提示信息样式 */
.notice {
  text-align: center;
  background: rgba(76, 217, 100, 0.8);
  padding: 10px;
  border-radius: 5px;
  font-size: 1rem;
  margin-top: 20px;
}

/* 图标样式 */
.icon {
  width: 24px;
  height: 24px;
  fill: #FF6F61;
  transition: fill 0.3s;
}

.icon:hover {
  fill: #4CD964;
}

/* 动态颜色变化 */
.dynamic-color {
  animation: color-change 5s infinite;
}

@keyframes color-change {
  0% { color: #FF6F61; }
  50% { color: #4CD964; }
  100% { color: #FF6F61; }
}

/* 数据可视化图表样式 */
.chart-bar {
  width: 50px;
  height: 0;
  background-color: #4CD964;
  animation: grow-height 1s ease-in-out forwards;
  margin-right: 10px;
}

@keyframes grow-height {
  from { height: 0; }
  to { height: 100px; }
}

/* 智能投顾卡片 */
.investment-card {
  background: rgba(51, 51, 51, 0.7);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.investment-card h4 {
  color: #FF9800;
  margin-bottom: 10px;
}

.investment-card p {
  color: #dcdcdc;
}

/* 粒子扩散动效按钮 */
.particle-button {
  position: relative;
  overflow: hidden;
}

.particle-button::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.5s ease-out;
}

.particle-button:active::after {
  transform: translate(-50%, -50%) scale(1);
}


