:root {
    --primary-bg: #0a0b10;
    --card-bg: rgba(255, 255, 255, 0.05);
    --google-blue: #4285F4;
    --google-red: #EA4335;
    --google-yellow: #FBBC05;
    --google-green: #34A853;
    --neon-blue: #00f2ff;
    --text-main: #e8e8e8;
    --text-dim: #a8a8a8;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background: linear-gradient(135deg, #0a0b10 0%, #12141a 100%);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    line-height: 1.75;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .brand {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* 背景流光效果 - 简化 */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-circle {
    position: absolute;
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.12;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--google-blue) 0%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: none;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--google-blue), var(--neon-blue));
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
    background: rgba(66, 133, 244, 0.12);
}

/* 英雄板块 - 简化背景 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 40px;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #a8a8a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    line-height: 1.8;
    font-weight: 400;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-hint:hover {
    opacity: 1;
}

/* 通用容器 */
section {
    padding: 100px 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: none;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--google-blue) 0%, var(--neon-blue) 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

section:hover .section-title::after {
    width: 140px;
}

/* 内容网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(66, 133, 244, 0.5);
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 0 12px 40px rgba(66, 133, 244, 0.25), 0 0 20px rgba(0, 242, 255, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
    left: 100%;
}

.card h3 {
    margin-bottom: 16px;
    color: var(--google-blue);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 400;
}

/* 工具选型表格 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th, .comparison-table td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
}

.comparison-table th {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.25) 0%, rgba(66, 133, 244, 0.15) 100%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.comparison-table tr:hover {
    background: rgba(66, 133, 244, 0.08);
    transform: scale(1.005);
    transition: all 0.3s ease;
}

.tag {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tag-blue { background: rgba(66, 133, 244, 0.15); color: var(--google-blue); }
.tag-red { background: rgba(234, 67, 53, 0.15); color: var(--google-red); }
.tag-yellow { background: rgba(251, 188, 5, 0.15); color: var(--google-yellow); }

/* 动画元素 */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 页脚 */
footer {
    padding: 35px 10%;
    background: #050508;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 14px;
    display: block;
}

/* SVG 图标样式 */
.icon-box {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.2) 0%, rgba(66, 133, 244, 0.1) 100%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.card:hover .icon-box {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.35) 0%, rgba(66, 133, 244, 0.2) 100%);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.35);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(66, 133, 244, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 133, 244, 0.6);
}

/* 表格优化 */
.comparison-table {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.9) 0%, rgba(0, 242, 255, 0.8) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--google-blue) 0%, var(--neon-blue) 100%);
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 12px 32px rgba(66, 133, 244, 0.5), 0 0 30px rgba(0, 242, 255, 0.3);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 280px;
    height: calc(100vh - 80px);
    background: linear-gradient(180deg, rgba(10, 11, 16, 0.95) 0%, rgba(15, 17, 25, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-right: 1px solid rgba(66, 133, 244, 0.25);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    z-index: 999;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(66, 133, 244, 0.5), rgba(0, 242, 255, 0.4));
    border-radius: 3px;
}

.sidebar-content {
    padding: 28px 20px;
}

.sidebar h3 {
    margin-bottom: 24px;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(66, 133, 244, 0.3);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: none;
}

.sidebar-toggle {
    position: absolute;
    top: 50%;
    right: -40px;
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.9), rgba(0, 242, 255, 0.8));
    border: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 2px 0 12px rgba(66, 133, 244, 0.3);
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, var(--google-blue), var(--neon-blue));
    right: -42px;
    box-shadow: 4px 0 20px rgba(66, 133, 244, 0.5);
}

.sidebar.collapsed {
    transform: translateX(-280px);
}

.sidebar.collapsed .sidebar-toggle {
    right: -40px;
}

.toc {
    list-style: none;
}

.toc li {
    margin-bottom: 6px;
}

.toc a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    padding: 12px 18px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.toc a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--google-blue), var(--neon-blue));
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

.toc a:hover::before, .toc a.active::before {
    height: 70%;
}

.toc a:hover, .toc a.active {
    color: white;
    background: linear-gradient(90deg, rgba(66, 133, 244, 0.2), rgba(66, 133, 244, 0.08));
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.2);
}

/* 调整主要内容区域的左边距，为侧边栏腾出空间 */
section {
    padding-left: calc(280px + 8%);
    padding-right: 8%;
    transition: padding-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed ~ section,
.sidebar.collapsed ~ nav,
.sidebar.collapsed ~ footer {
    padding-left: 10%;
}

/* 高级内容卡片样式 */
.info-box {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.12), rgba(0, 242, 255, 0.06));
    border-left: 5px solid var(--google-blue);
    padding: 28px 32px;
    border-radius: 16px;
    margin: 36px 0;
    box-shadow: 0 6px 24px rgba(66, 133, 244, 0.15);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.2);
}

.info-box h4 {
    color: var(--google-blue);
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.info-box p {
    color: var(--text-main);
    line-height: 1.85;
    font-size: 0.95rem;
    font-weight: 400;
}

.warning-box {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.08), rgba(251, 188, 5, 0.04));
    border-left: 3px solid var(--google-red);
    padding: 32px 36px;
}

.warning-box h4 {
    color: var(--google-red);
    margin-bottom: 20px;
}

.warning-box p {
    margin-bottom: 14px;
    line-height: 1.9;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

.success-box {
    background: linear-gradient(135deg, rgba(52, 168, 83, 0.08), rgba(0, 242, 255, 0.04));
    border-left: 3px solid var(--google-green);
    padding: 32px 36px;
}

.success-box h4 {
    color: var(--google-green);
    margin-bottom: 20px;
}

.success-box p {
    margin-bottom: 14px;
    line-height: 1.9;
}

.success-box p:last-child {
    margin-bottom: 0;
}

/* 代码块样式 */
.code-snippet {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(66, 133, 244, 0.3);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 20px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.88rem;
    color: #b8f5f3;
    overflow-x: auto;
    line-height: 1.7;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    section {
        padding-left: calc(220px + 5%);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar-toggle {
        right: -36px;
    }
    nav { padding: 12px 16px; }
    .nav-links { display: none; }
    .brand { font-size: 1.1rem; }
    section {
        padding: 60px 5% 50px 5%;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}
