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

:root {
    /* 主色调 - 参考苹果风格的渐变色 */
    --primary-color: #007AFF;
    --primary-dark: #0051D5;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warm-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* 中性色 */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-light: #86868b;
    --bg-white: #ffffff;
    --bg-gray: #f5f5f7;
    --bg-dark: #000000;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* 动画时间 */
    --transition-fast: 0.2s;
    --transition-base: 0.3s;
    --transition-slow: 0.5s;
    
    /* 边框半径 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    touch-action: pan-x pan-y;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================
   容器
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ==========================================
   导航栏
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all var(--transition-base) ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand i {
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* 移动端导航 */
@media (max-width: 768px) {
    .navbar .container {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .nav-brand {
        font-size: 1.125rem;
    }
    
    .nav-brand i {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-md);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.125rem;
        padding: 0.75rem 0;
    }
    
    .nav-toggle {
        display: block;
        padding: 0.5rem;
        margin: -0.5rem;
    }
}

/* ==========================================
   Hero 区域
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--spacing-xl) 0;
    padding-top: 80px; /* 为导航栏留空间 */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* 动画类 */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 浮动链接动画 */
.hero-animation {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

.floating-link {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* 移动端Hero优化 */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 80px var(--spacing-sm) var(--spacing-lg);
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
        line-height: 1.6;
    }
    
    .hero-animation {
        display: none;
    }
    
    .scroll-indicator {
        bottom: 2rem;
        font-size: 1.5rem;
    }
}

/* ==========================================
   按钮样式
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: white;
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ==========================================
   区块标题
   ========================================== */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* ==========================================
   功能特点区域
   ========================================== */
.features {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 2rem;
    transition: all var(--transition-base);
}

.feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.feature-card:nth-child(5) .feature-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.feature-card:nth-child(6) .feature-icon {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   技术要点区域
   ========================================== */
.tech-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-gray);
}

.tech-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.tech-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.tech-item.reverse {
    direction: rtl;
}

.tech-item.reverse > * {
    direction: ltr;
}

.tech-info {
    padding: var(--spacing-md);
}

.tech-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.tech-info h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.tech-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.tech-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.tech-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.tech-features i {
    color: #43e97b;
    font-size: 1rem;
}

/* 代码块样式 */
.code-block {
    background: #1d1d1f;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    padding: 0.75rem 1rem;
    background: #2d2d2f;
    display: flex;
    gap: 0.5rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red {
    background: #ff5f56;
}

.code-dot.yellow {
    background: #ffbd2e;
}

.code-dot.green {
    background: #27c93f;
}

.code-block pre {
    padding: var(--spacing-md);
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    color: #a9b7c6;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* 缓存图表 */
.cache-diagram {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.cache-layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: var(--spacing-md);
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 200px;
}

.cache-layer i {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cache-arrow {
    font-size: 1.5rem;
    color: var(--text-light);
}

/* 统计图表 */
.stats-chart {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: var(--spacing-sm);
    height: 300px;
}

.chart-bar {
    flex: 1;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
    animation: growUp 1s ease forwards;
    transform-origin: bottom;
}

@keyframes growUp {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.bar-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 968px) {
    .tech-item,
    .tech-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .tech-features {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   使用场景区域
   ========================================== */
.use-cases {
    padding: var(--spacing-xl) 0;
    background: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.use-case-card {
    background: var(--bg-gray);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.use-case-image {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 3rem;
}

.use-case-card:nth-child(1) .use-case-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.use-case-card:nth-child(2) .use-case-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.use-case-card:nth-child(3) .use-case-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.use-case-card:nth-child(4) .use-case-image {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.use-case-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.use-case-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   CTA 区域
   ========================================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* ==========================================
   页脚
   ========================================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: white;
    color: var(--text-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.footer-bottom .copyright {
    margin: 0;
}

/* 备案信息容器 */
.beian-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
}

.beian-info a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.beian-info a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.beian-info a:active {
    background: rgba(255, 255, 255, 0.1);
}

.beian-info a i {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* PC端分隔符 */
.beian-info a.gongan-beian::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   返回顶部按钮
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   滚动动画
   ========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   响应式设计
   ========================================== */
/* 移动端响应式优化 */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    /* 功能卡片 */
    .features {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .feature-card h3 {
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
    
    /* 技术区域 */
    .tech-section {
        padding: 3rem 0;
    }
    
    .tech-content {
        gap: 3rem;
    }
    
    .tech-info h3 {
        font-size: 1.5rem;
    }
    
    .tech-info p {
        font-size: 0.9375rem;
    }
    
    /* 使用场景 */
    .use-cases {
        padding: 3rem 0;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .use-case-card {
        padding: 2rem 1.5rem;
    }
    
    .use-case-image {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .use-case-card h3 {
        font-size: 1.375rem;
    }
    
    .use-case-card p {
        font-size: 0.9375rem;
    }
    
    /* CTA区域 */
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
        padding: 0 1rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    /* 页脚 */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* 移动端备案信息上下排列 */
    .beian-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .beian-info a {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }
    
    /* 移动端隐藏分隔符 */
    .beian-info a.gongan-beian::before {
        display: none;
    }
    
    /* 返回顶部按钮 */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.125rem;
    }
}

/* 移动端按钮优化 */
@media (max-width: 768px) {
    .btn {
        padding: 1rem 1.75rem;
        font-size: 1.0625rem;
        min-width: 140px;
    }
    
    .btn i {
        font-size: 1.125rem;
    }
}

/* 小屏移动端优化 */
@media (max-width: 480px) {
    .hero {
        padding: 70px var(--spacing-sm) var(--spacing-md);
    }
    
    .hero-title {
        font-size: 2.25rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.0625rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        padding: 1.125rem 2rem;
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .section-subtitle {
        font-size: 0.9375rem !important;
    }
    
    /* 优化卡片间距 */
    .features,
    .tech-section,
    .use-cases,
    .cta-section {
        padding: 2.5rem 0 !important;
    }
    
    .feature-card,
    .use-case-card {
        padding: 1.75rem 1.25rem !important;
    }
    
    /* 优化技术区域 */
    .tech-number {
        font-size: 2.5rem !important;
    }
    
    .tech-info h3 {
        font-size: 1.375rem !important;
    }
    
    .code-block pre {
        font-size: 0.8125rem;
        padding: 1rem;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 2.5rem 0 1.5rem !important;
    }
    
    .footer-section h3 {
        font-size: 1.125rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
}

/* ==========================================
   微信二维码模态框
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform var(--transition-base);
    z-index: 1;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-gray);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.modal-close:hover {
    background: var(--text-primary);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.modal-header i {
    font-size: 3rem;
    background: linear-gradient(135deg, #09bb07 0%, #00d100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.modal-body {
    text-align: center;
}

.qrcode-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

/* 模态框移动端优化 */
@media (max-width: 480px) {
    .modal-content {
        padding: var(--spacing-md);
        max-width: 340px;
    }
    
    .modal-header i {
        font-size: 2.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .qrcode-image {
        max-width: 240px;
    }
}

/* ==========================================
   移动端触摸优化
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    /* 移动端触摸设备 */
    .btn:active {
        transform: scale(0.97);
    }
    
    .feature-card:active,
    .use-case-card:active {
        transform: scale(0.98);
    }
    
    .nav-link:active {
        color: var(--primary-color);
    }
    
    .back-to-top:active {
        transform: scale(0.95);
    }
    
    /* 移动端禁用悬浮效果 */
    .btn:hover,
    .feature-card:hover,
    .use-case-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.97) !important;
    }
    
    .feature-card:active,
    .use-case-card:active {
        transform: translateY(-4px);
    }
}

/* ==========================================
   横屏模式优化
   ========================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px var(--spacing-md) var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ==========================================
   打印样式
   ========================================== */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator,
    .hero-animation {
        display: none;
    }
}

@media (max-width: 768px) {
    body { background: #ffffff; }
    .navbar,
    .hero-buttons,
    .hero-animation,
    .scroll-indicator,
    .features,
    .tech-section,
    .use-cases,
    .cta-section,
    .footer .footer-content,
    .back-to-top,
    .modal { display: none !important; }
    .hero { background: #ffffff; min-height: calc(100vh - 120px); padding: 0; display: flex; align-items: center; justify-content: center; }
    .hero-content { max-width: none; padding: 0; }
    .hero-title,
    .hero-subtitle { display: none !important; }
    .hero-content::before { content: ""; width: 180px; height: 180px; display: block; margin: 0 auto 20px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #dee8ff 0%, #f5f8ff 65%, #ffffff 100%); box-shadow: 0 0 0 3px #3066ff, 0 0 0 9px rgba(48,102,255,0.25); background-image: url("dl.png"); background-repeat: no-repeat; background-position: center; background-size: 60% 60%; }
    .hero-content::after { content: "已成功接入千五网络短链功能"; display: block; text-align: center; font-size: 16px; color: #2f3b6f; }
    .footer { background: transparent; padding: 24px 0; }
    .footer-bottom { border-top: none; padding-top: 0; color: #2f3b6f; }
    .beian-info a { color: #2f3b6f; }
}
