:root {
    --bg-dark: #121612;
    --bg-light-green: #1e2b1e;
    --accent-green: #a3d977;
    --text-main: #f0f0f0;
    --text-muted: #9ba89b;
    --red-btn: #e63946;
    --red-hover: #c1121f;
    --card-bg: #1a221a;
    --nav-bg: rgba(18, 22, 18, 0.95);
    --border-color: #2c382c;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
  }

  a {
    color: var(--accent-green);
    text-decoration: none;
  }

  /* 竹子下落背景动画 */
  .bamboo-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
  }
  .bamboo {
    position: absolute;
    top: -100px;
    width: 8px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(163, 217, 119, 0.2));
    border-radius: 4px;
    animation: fall linear infinite;
  }
  @keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
  }

  /* 布局 */
  .layout-wrapper {
    display: flex;
    min-height: 100vh;
  }

  /* 侧边导航 (PC) */
  .sidebar {
    width: 260px;
    background-color: var(--nav-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .sidebar.collapsed {
    transform: translateX(-100%);
  }

  .sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
  }

  .logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
    color: var(--accent-green);
  }

  .logo-box img {
    height: 32px;
    border-radius: 6px;
  }

  .toggle-btn {
    background: var(--bg-light-green);
    border: 1px solid var(--border-color);
    color: var(--accent-green);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
  }

  .nav-links {
    list-style: none;
    padding: 20px 0;
    overflow-y: auto;
    flex: 1;
  }

  .nav-links li a {
    display: block;
    padding: 12px 24px;
    color: var(--text-main);
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
  }

  .nav-links li a:hover {
    background: var(--bg-light-green);
    color: var(--accent-green);
  }

  /* 主内容区 */
  .main-content {
    flex: 1;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
    width: calc(100% - 260px);
  }

  .main-content.expanded {
    margin-left: 0;
    width: 100%;
  }

  /* 移动端导航 */
  .mobile-header {
    display: none;
    background-color: var(--nav-bg);
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-header .logo-box img {
    height: 28px;
  }

  .mobile-menu {
    display: none;
    background: var(--nav-bg);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    z-index: 98;
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-menu ul {
    list-style: none;
  }

  .mobile-menu li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
  }

  /* 通用区块 */
  section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 28px;
    color: var(--accent-green);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--accent-green);
    border-radius: 2px;
  }

  /* 首屏 Hero */
  .hero {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at center, var(--bg-light-green) 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-color);
  }

  .hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .download-btn {
    display: inline-block;
    background-color: var(--red-btn);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 30px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
  }

  .download-btn:hover {
    background-color: var(--red-hover);
    transform: translateY(-2px);
  }

  .update-time {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
  }

  /* 跑马灯 */
  .marquee-bar {
    background: var(--bg-light-green);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .marquee-content {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
    font-size: 16px;
    color: var(--accent-green);
  }

  .marquee-content span {
    margin: 0 30px;
  }

  @keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* 图片卡片网格 */
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
  }
  
  .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  /* 图片容器和播放按钮 */
  .img-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
  }

  .img-container:hover {
    transform: scale(1.02);
    border-color: var(--accent-green);
  }

  .img-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
  }

  .play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .img-container:hover .play-btn-overlay {
    opacity: 1;
  }

  .play-btn-overlay::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
    margin-left: 4px;
  }

  .card-text {
    padding: 15px;
    font-size: 15px;
    text-align: center;
  }

  .card-text p {
    margin-top: 5px;
    font-size: 13px;
    color: var(--text-muted);
  }

  /* 轮播图 */
  .carousel-section {
    background: var(--bg-light-green);
    padding: 60px 20px;
  }

  .carousel-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }

  .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
  }

  .carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  .carousel-slide .play-btn-overlay {
    opacity: 1;
    width: 70px;
    height: 70px;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    border: none;
  }

  .dot.active {
    background: var(--accent-green);
  }

  /* 熊猫亮点 */
  .highlight-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
  }

  .highlight-box p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
  }

  /* 排行榜 */
  .rank-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    gap: 15px;
  }

  .rank-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--red-btn);
    width: 30px;
    text-align: center;
  }

  .rank-card img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
  }

  .rank-info {
    flex: 1;
  }

  .rank-info h4 {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .rank-info span {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .heat-icon {
    color: var(--red-btn);
    font-size: 12px;
  }

  /* 弹幕互动 */
  .danmaku-screen {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
  }

  .danmaku-screen > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0.8;
  }

  .danmaku-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
  }

  .danmaku-item {
    position: absolute;
    white-space: nowrap;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    animation: danmaku-move linear forwards;
  }

  @keyframes danmaku-move {
    from { right: -20%; }
    to { right: 100%; }
  }

  /* 历史 */
  .history-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
  }

  /* 常见问题 */
  .faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
  }

  .faq-question {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light-green);
  }

  .faq-question::after {
    content: "+";
    font-size: 20px;
    color: var(--accent-green);
  }

  .faq-item.active .faq-question::after {
    content: "-";
  }

  .faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
  }

  .faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
  }

  /* 评论 */
  .comment-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
  }

  .comment-list {
    margin-bottom: 30px;
  }

  .comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
  }

  .comment-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
  }

  .comment-body {
    flex: 1;
    background: var(--bg-dark);
    padding: 15px;
    border-radius: 8px;
  }

  .comment-body h5 {
    font-size: 14px;
    color: var(--accent-green);
    margin-bottom: 5px;
  }

  .comment-body p {
    font-size: 14px;
    color: var(--text-muted);
  }

  .comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .comment-form textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
  }

  .comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-green);
  }

  .comment-form button {
    align-self: flex-end;
    background: var(--accent-green);
    color: var(--bg-dark);
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
  }

  .comment-form button:hover {
    opacity: 0.8;
  }

  /* 弹窗 Modal */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  .modal-overlay.open {
    display: flex;
  }

  .modal-box {
    background: var(--bg-light-green);
    border: 1px solid var(--accent-green);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  .modal-box h3 {
    color: var(--accent-green);
    margin-bottom: 15px;
    font-size: 22px;
  }
  
  .modal-box p {
    color: var(--text-muted);
    margin-bottom: 25px;
  }

  .modal-btn {
    background: var(--red-btn);
    color: #fff;
    padding: 12px 30px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
  }

  /* 页脚 */
  footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 40px;
  }

  footer p {
    margin-bottom: 10px;
  }
  
  footer a {
    color: var(--text-muted);
  }
  
  footer a:hover {
    text-decoration: underline;
  }

  /* 响应式 */
  @media (max-width: 1024px) {
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 32px; }
    .section-title { font-size: 24px; }
  }

  @media (max-width: 768px) {
    .sidebar { display: none; }
    .mobile-header { display: flex; }
    .main-content { margin-left: 0; width: 100%; }
    section { padding: 40px 20px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
    .hero { padding: 50px 20px; }
    .highlight-box { padding: 20px; }
    .carousel-slide { aspect-ratio: 4/3; }
  }