:root {
      --primary: #2563eb;
      --accent: #06b6d4;
      --bg: #f8fafc;
      --text: #0f172a;
      --white: #ffffff;
      --light: #e2e8f0;
      --soft-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.08);
      --hover-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.2);
    }

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

    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      line-height: 1.6;
      background-image: radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.03) 0%, transparent 20%),
                        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.03) 0%, transparent 30%),
                        linear-gradient(rgba(37, 99, 235, 0.02) 1px, transparent 1px),
                        linear-gradient(90deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
      background-size: 60px 60px, 60px 60px, 30px 30px, 30px 30px;
      background-attachment: fixed;
    }

    /* 手写感标题字体，圆润可爱 */
    .display-font {
      font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive, sans-serif;
      font-weight: 700;
      letter-spacing: 0.01em;
    }

    /* 打字机动画 */
    .typewriter {
      display: inline-block;
      overflow: hidden;
      white-space: nowrap;
      border-right: 3px solid var(--accent);
      width: 0;
      animation: typing 3.5s steps(14, end) infinite, blink-caret 0.75s step-end infinite;
      max-width: 100%;
    }

    @keyframes typing {
      0%, 100% { width: 0; }
      20%, 80% { width: 100%; }
    }

    @keyframes blink-caret {
      0%, 100% { border-color: transparent; }
      50% { border-color: var(--accent); }
    }

    /* 卡片滚动渐显 */
    .reveal-card {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
      transition-delay: calc(var(--i, 0) * 0.12s);
    }

    .reveal-card.in-view {
      opacity: 1;
      transform: translateY(0);
    }

    /* 图片hover放大 + 遮罩 */
    .hover-zoom-wrapper {
      overflow: hidden;
      position: relative;
      border-radius: 1rem;
    }

    .hover-zoom-wrapper img {
      transition: transform 0.5s ease;
      display: block;
      width: 100%;
      height: auto;
    }

    .hover-zoom-wrapper:hover img {
      transform: scale(1.05);
    }

    .img-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
      opacity: 0;
      transition: opacity 0.4s ease;
      display: flex;
      align-items: flex-end;
      padding: 1.5rem;
      color: white;
    }

    .hover-zoom-wrapper:hover .img-overlay {
      opacity: 1;
    }

    /* 时间线 */
    .timeline {
      position: relative;
      padding-left: 1.8rem;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 6px;
      top: 8px;
      bottom: 8px;
      width: 2px;
      background: linear-gradient(to bottom, var(--primary), var(--accent));
    }

    .timeline-item {
      position: relative;
      margin-bottom: 2rem;
      border-radius: 1.5rem;
      background: white;
      padding: 1.2rem 1.5rem;
      box-shadow: var(--soft-shadow);
    }

    .timeline-item::before {
      content: '';
      position: absolute;
      left: -1.6rem;
      top: 1.4rem;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--primary);
      border: 2px solid white;
      box-shadow: 0 0 0 2px var(--accent);
    }

    /* 标签页样式 */
    .custom-tabs .nav-link {
      border-radius: 50rem !important;
      padding: 0.5rem 1.2rem;
      margin: 0 0.2rem;
      font-weight: 500;
      color: var(--text);
      background: white;
      border: 1px solid var(--light);
    }

    .custom-tabs .nav-link.active {
      background: var(--primary) !important;
      color: white !important;
      border-color: var(--primary);
    }

    .btn-pill {
      border-radius: 50rem;
      padding: 0.5rem 1.8rem;
      font-weight: 600;
    }

    .rounded-card {
      border-radius: 1.2rem;
    }

    /* 对比表格 */
    .comparison-table td, .comparison-table th {
      padding: 0.9rem 1rem;
    }

    .bg-soft-primary {
      background: rgba(37, 99, 235, 0.05);
    }

    /* 导航 */
    .navbar {
      background: rgba(248, 250, 252, 0.85) !important;
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    }

    .navbar-brand {
      font-weight: 800;
      color: var(--primary) !important;
    }

    .navbar-nav .nav-link {
      font-weight: 500;
      color: var(--text) !important;
      border-radius: 50rem;
      margin: 0 0.2rem;
      padding: 0.4rem 1rem;
    }

    .navbar-nav .nav-link:hover {
      background: rgba(37, 99, 235, 0.1);
    }

    footer {
      background: #ffffffd9;
      backdrop-filter: blur(5px);
      border-top: 1px solid var(--light);
    }

    /* 友链区块 */
    .friend-links {
      background: #ffffff;
      border-radius: 1.5rem;
      padding: 1.5rem;
      border: 1px solid var(--light);
    }

/* --- 子页面追加 --- */
/* 覆盖 Bootstrap 组件配色，保证与站点一致 */
        .card, .card-body, .card-title, .card-text, .card-header, .card-footer {
            background: var(--white);
            color: var(--text);
            border-color: var(--light);
        }
.list-group-item {
            background: var(--white);
            color: var(--text);
            border-color: var(--light);
        }
/* 本页增强样式 */
        .about-hero {
            background: linear-gradient(145deg, var(--bg) 0%, #eef2ff 100%);
            border-bottom: 1px solid var(--light);
        }
.about-section-title {
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--text);
            margin-bottom: 1.5rem;
        }
.about-highlight {
            color: var(--primary);
            font-weight: 600;
        }
.timeline-item h4 {
            font-weight: 700;
            color: var(--text);
        }
.timeline-item p {
            color: #334155;
        }
.friend-links a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
        }
.friend-links a:hover {
            text-decoration: underline;
        }
.icon-circle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            margin-right: 12px;
            flex-shrink: 0;
        }
.feature-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 2rem;
        }
.feature-item h5 {
            font-weight: 700;
            color: var(--text);
            margin-bottom: 0.25rem;
        }
.feature-item p {
            color: #334155;
        }

/* --- 子页面追加 --- */
/* 覆盖 Bootstrap 组件配色，确保与站点风格一致 */
        .card, .card-body, .card-header, .card-footer {
            background: var(--white);
            color: var(--text);
            border-color: var(--light);
        }
.form-control, .form-select {
            background: var(--white);
            color: var(--text);
            border-color: var(--light);
        }
.form-control::placeholder {
            color: #94a3b8;
        }
.list-group-item, .accordion-item, .accordion-button, .accordion-body {
            background: var(--white);
            color: var(--text);
            border-color: var(--light);
        }
.btn-light {
            background: var(--light);
            color: var(--text);
            border-color: var(--light);
        }
.btn-outline-primary {
            border-color: var(--primary);
            color: var(--primary);
        }
.btn-outline-primary:hover {
            background: var(--primary);
            color: var(--white);
        }
/* 免责声明页面专属样式 */
        .disclaimer-hero {
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
            border-bottom: 1px solid var(--light);
            padding: 4rem 0 3rem;
        }
.disclaimer-section {
            background: var(--white);
            border: 1px solid var(--light);
            border-radius: 16px;
            padding: 2rem 2.5rem;
            margin-bottom: 1.5rem;
            box-shadow: var(--soft-shadow);
            transition: box-shadow 0.3s ease;
        }
.disclaimer-section:hover {
            box-shadow: var(--hover-shadow);
        }
.disclaimer-section h2 {
            font-family: 'Inter', sans-serif;
            font-weight: 700;
            font-size: 1.35rem;
            color: var(--primary);
            margin-bottom: 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
.disclaimer-section h2 i {
            color: var(--accent);
            font-size: 1.1rem;
        }
.disclaimer-section p {
            color: var(--text);
            line-height: 1.8;
            font-size: 0.95rem;
            margin-bottom: 1rem;
        }
.disclaimer-section ul {
            color: var(--text);
            line-height: 1.8;
            font-size: 0.95rem;
            padding-left: 1.5rem;
            margin-bottom: 1rem;
        }
.disclaimer-section ul li {
            margin-bottom: 0.5rem;
            position: relative;
        }
.disclaimer-section ul li::before {
            content: "•";
            color: var(--accent);
            font-weight: bold;
            display: inline-block;
            width: 1rem;
            margin-left: -1rem;
        }
.disclaimer-section strong {
            color: var(--primary);
            font-weight: 600;
        }
.notice-box {
            background: rgba(37, 99, 235, 0.05);
            border-left: 4px solid var(--primary);
            padding: 1.25rem 1.5rem;
            border-radius: 0 12px 12px 0;
            margin: 1.5rem 0;
        }
.notice-box p {
            margin-bottom: 0;
            color: var(--text);
        }
.notice-box i {
            color: var(--primary);
            margin-right: 0.5rem;
        }
.last-updated {
            color: #64748b;
            font-size: 0.85rem;
            font-style: italic;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px dashed var(--light);
        }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.table { color:#0f172a !important; border-color:rgba(0,0,0,.12) !important; --bs-table-bg:transparent !important; --bs-table-color:#0f172a !important; }
.accordion-header { background:transparent !important; }
