:root {
    --bg: #0f1117;
    --panel: rgba(20, 24, 33, 0.75);
    --green: #00ff88;
    --orange: #ff6b2b;
    --blue: #4d9fff;
    --text: #e8ecf0;
    --muted: #8b95a5;
    --border: rgba(0, 255, 136, 0.1);
    --font-title: "Impact", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

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

  body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }

  @media (min-width: 768px) {
    .container { padding: 0 40px; }
  }
  @media (min-width: 1024px) {
    .container { padding: 0 80px; }
  }

  /* Header */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: height 0.3s ease;
  }

  header.scrolled {
    height: 56px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-title);
    font-size: 20px;
    color: var(--green);
    letter-spacing: 1px;
  }

  .logo-area img {
    height: 32px;
    width: auto;
    border-radius: 6px;
  }

  .nav-links {
    display: none;
    gap: 24px;
    font-size: 14px;
  }

  @media (min-width: 1024px) {
    .nav-links { display: flex; }
  }

  .nav-links a {
    color: var(--text);
    transition: color 0.2s;
  }
  .nav-links a:hover {
    color: var(--green);
  }

  .btn-nav {
    display: none;
    background: linear-gradient(90deg, var(--green), #00cc6a);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    animation: pulse 2s infinite;
  }
  @media (min-width: 768px) {
    .btn-nav { display: inline-block; }
  }

  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
  }

  /* Main content */
  main {
    padding-top: 72px;
  }

  section {
    padding: 48px 0;
  }
  @media (min-width: 768px) { section { padding: 64px 0; } }
  @media (min-width: 1024px) { section { padding: 96px 0; } }

  .section-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: normal;
  }

  h1 {
    font-size: 36px;
    color: var(--green);
    text-shadow: 0 0 10px rgba(0,255,136,0.3);
    line-height: 1.2;
    margin-bottom: 16px;
  }
  @media (min-width: 768px) { h1 { font-size: 56px; } }

  h2 {
    font-size: 28px;
    border-left: 4px solid var(--green);
    padding-left: 12px;
    margin-bottom: 8px;
  }
  @media (min-width: 768px) { h2 { font-size: 36px; } }

  .subtitle {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 32px;
  }

  .card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
  }

  /* Hero */
  .hero-section {
    min-height: 640px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--border);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
  }
  @media (min-width: 1024px) {
    .hero-grid {
      grid-template-columns: 55% 45%;
      gap: 60px;
    }
  }

  .stats-row {
    display: flex;
    gap: 16px;
    color: var(--orange);
    font-family: monospace;
    font-size: 14px;
    margin-bottom: 32px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, #00ff88, #00b35f);
    color: #000;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
  }

  .link-secondary {
    color: var(--blue);
    font-size: 15px;
    position: relative;
    padding-bottom: 2px;
  }
  .link-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }
  .link-secondary:hover::after {
    transform: scaleX(1);
  }

  .hero-card {
    padding: 24px;
    position: relative;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
  }

  .hero-card-tag {
    font-size: 12px;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }
  
  .hero-card-title {
    font-size: 20px;
    margin-bottom: 24px;
    line-height: 1.4;
  }

  .countdown {
    font-family: monospace;
    font-size: 40px;
    color: var(--orange);
    margin-bottom: 24px;
  }

  .countdown span {
    font-size: 16px;
    color: var(--muted);
  }

  /* Daily Topic */
  .topic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  @media (min-width: 1024px) {
    .topic-grid { grid-template-columns: 60% 40%; }
  }

  .topic-main {
    padding: 32px;
    border-left: 4px solid var(--green);
  }

  .topic-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .topic-desc {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 16px;
  }

  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
  }

  .tag {
    background: rgba(77, 159, 255, 0.1);
    color: var(--blue);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
  }

  .tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .tab-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
  }

  .tab-item.active, .tab-item:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: var(--green);
  }

  .tab-item .name {
    font-weight: bold;
  }
  .tab-item .count {
    font-size: 12px;
    color: var(--muted);
  }

  /* Short Video */
  .filter-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
    scrollbar-width: none;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  
  .filter-btn {
    white-space: nowrap;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 14px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
  }
  .filter-btn.active {
    color: var(--bg);
    background: var(--green);
    border-color: var(--green);
  }

  .video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  @media (min-width: 768px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (min-width: 1024px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
  }

  .video-card {
    position: relative;
    aspect-ratio: 16/9;
    background: #1a1e29;
    border-radius: 8px;
    overflow: hidden;
  }

  .video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }

  .video-card:hover img {
    transform: scale(1.05);
  }

  .video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--orange);
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid var(--orange);
    box-shadow: 0 0 8px rgba(255, 107, 43, 0.3);
  }

  .video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  }

  .video-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .video-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
  }

  /* Arena (Gallery) */
  .arena-grid-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }
  @media (min-width: 1024px) {
    .arena-grid-top { grid-template-columns: repeat(2, 1fr); }
  }

  .arena-grid-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  @media (min-width: 768px) {
    .arena-grid-bottom { grid-template-columns: repeat(3, 1fr); }
  }

  .arena-card {
    position: relative;
    background: #1a1e29;
    border-radius: 8px;
    overflow: hidden;
  }

  .arena-card.landscape { aspect-ratio: 16/9; }
  .arena-card.portrait { aspect-ratio: 9/16; }

  .arena-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .arena-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  }

  .arena-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .arena-author {
    font-size: 14px;
    color: var(--blue);
  }

  /* Stats & Rankings */
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  @media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
  }

  .list-card {
    padding: 24px;
  }

  .list-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .list-title { font-size: 18px; color: var(--green); }
  .list-sub { font-size: 12px; color: var(--muted); }

  .rank-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
  }

  .rank-num {
    width: 24px;
    font-family: monospace;
    color: var(--muted);
    font-weight: bold;
  }

  .rank-info { flex: 1; }

  .rank-name { margin-bottom: 2px; }
  .rank-author { font-size: 12px; color: var(--muted); }

  /* Inspiration */
  .inspiration-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
  }
  .inspiration-scroll::-webkit-scrollbar { display: none; }

  .inspiration-card {
    flex: 0 0 300px;
    aspect-ratio: 4/3;
    background: var(--panel);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
  }

  .inspiration-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
  }

  .inspiration-card p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
  }

  /* Tools */
  .tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  @media (min-width: 768px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
  }

  .tool-card {
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(77, 159, 255, 0.2);
    transition: transform 0.3s, border-color 0.3s;
  }

  .tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
  }

  .tool-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .tool-card p {
    color: var(--muted);
    font-size: 14px;
  }

  /* Community */
  .community-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  @media (min-width: 1024px) {
    .community-grid { grid-template-columns: repeat(3, 1fr); }
  }

  .post-card {
    padding: 24px;
    transition: transform 0.2s;
  }

  .post-card:hover {
    transform: translateY(-4px);
  }

  .post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
  }

  .post-user { font-weight: bold; font-size: 15px; }
  .post-time { font-size: 12px; color: var(--muted); }

  .post-content {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--text);
  }

  /* About Section in Footer */
  .site-about-wrapper {
    margin: 24px 0;
    font-size: 12px;
    color: var(--muted);
  }
  
  .site-about-wrapper summary {
    cursor: pointer;
    display: inline-block;
    user-select: none;
    outline: none;
  }
  
  .site-about-wrapper summary::-webkit-details-marker {
    display: none;
  }

  .site-about-content {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-about-content a {
    color: var(--muted);
    transition: color 0.2s;
  }
  
  .site-about-content a:hover {
    color: var(--green);
  }

  /* Footer */
  footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    font-size: 13px;
    color: var(--muted);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }
  @media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-brand img {
    height: 28px;
    width: auto;
    align-self: flex-start;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer-links a {
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s;
  }

  .footer-links a:hover {
    color: var(--text);
  }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
  }
  @media (min-width: 768px) {
    .footer-bottom {
      flex-direction: row;
      justify-content: space-between;
      text-align: left;
    }
  }

  .footer-bottom a {
    color: inherit;
    text-decoration: underline;
  }

  .update-time {
    font-size: 12px;
    color: #555;
  }