/* ============================================
   云厂工具箱 - 主样式表
   完全本地化 | 零外部依赖
   ============================================ */

/* CSS变量定义 */
:root {
    --primary: #165DFF;
    --primary-dark: #0E4AD6;
    --primary-light: #4080FF;
    --secondary: #0FC6C2;
    --secondary-dark: #0DB5B1;
    --dark: #1D2129;
    --dark-light: #272E3B;
    --light: #F2F3F5;
    --success: #00B42A;
    --warning: #FF7D00;
    --danger: #F53F3F;
    
    --gray-50: #F9FAFB;
    --gray-100: #F2F3F5;
    --gray-200: #E5E6EB;
    --gray-300: #C9CDD4;
    --gray-400: #86909C;
    --gray-500: #6B7280;
    --gray-600: #4E5969;
    --gray-700: #272E3B;
    --gray-800: #1D2129;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-50);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   图标系统 (SVG)
   ============================================ */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }
.icon-2xl { width: 64px; height: 64px; }

/* ============================================
   按钮组件
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(22,93,255,0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(22,93,255,0.5);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(15,198,194,0.4);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    box-shadow: 0 6px 20px rgba(15,198,194,0.5);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.btn-disabled {
    background: var(--gray-200);
    color: var(--gray-400);
    cursor: not-allowed;
    pointer-events: none;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* ============================================
   头部导航 - 完全重写
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0;
}

/* Logo区域 - 固定高度垂直居中 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
    height: 72px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 40px;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(22,93,255,0.05);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-600);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

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

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* ============================================
   页面区块
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
    line-height: 1.3;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.125rem;
}

/* ============================================
   Hero区域
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-desc {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-meta {
    margin-top: 32px;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================================
   功能卡片
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-200);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-icon.blue { background: rgba(22,93,255,0.1); }
.feature-icon.blue svg { fill: var(--primary); }

.feature-icon.cyan { background: rgba(15,198,194,0.1); }
.feature-icon.cyan svg { fill: var(--secondary); }

.feature-icon.green { background: rgba(0,180,42,0.1); }
.feature-icon.green svg { fill: var(--success); }

.feature-icon.orange { background: rgba(255,125,0,0.1); }
.feature-icon.orange svg { fill: var(--warning); }

.feature-icon.red { background: rgba(245,63,63,0.1); }
.feature-icon.red svg { fill: var(--danger); }

.feature-icon.purple { background: rgba(139,92,246,0.1); }
.feature-icon.purple svg { fill: #8B5CF6; }

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-desc {
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   版本对比
   ============================================ */
.versions-section {
    background: white;
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.version-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    transition: var(--transition);
}

.version-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.version-card.recommended {
    border-color: var(--primary);
}

.version-badge {
    position: absolute;
    top: -2px;
    right: 30px;
    padding: 6px 16px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-badge.recommended {
    background: var(--primary);
    color: white;
}

.version-badge.portable {
    background: var(--secondary);
    color: white;
}

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

.version-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.version-icon svg {
    width: 28px;
    height: 28px;
}

.version-icon.blue { background: rgba(22,93,255,0.1); }
.version-icon.blue svg { fill: var(--primary); }

.version-icon.cyan { background: rgba(15,198,194,0.1); }
.version-icon.cyan svg { fill: var(--secondary); }

.version-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.version-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.version-features {
    list-style: none;
    margin-bottom: 32px;
}

.version-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: var(--gray-600);
}

.version-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: rgba(0,180,42,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300B42A' width='12' height='12'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.version-btn {
    width: 100%;
}

.version-note {
    text-align: center;
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   下载区域
   ============================================ */
.download-section {
    background: var(--gray-100);
}

.download-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.download-main {
    padding: 48px;
}

.os-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.os-btn {
    padding: 24px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.os-btn:hover,
.os-btn.active {
    border-color: var(--primary);
    background: rgba(22,93,255,0.03);
}

.os-btn .os-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
}

.os-btn .os-icon svg {
    width: 100%;
    height: 100%;
}

.os-btn span {
    display: block;
    font-weight: 600;
    color: var(--dark);
}

.download-options {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 24px;
}

.download-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.download-option:last-child {
    margin-bottom: 0;
}

.download-option:hover {
    box-shadow: var(--shadow);
}

.download-option-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

.download-option-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.download-stats {
    background: var(--gray-100);
    padding: 32px 48px;
    text-align: center;
}

.download-stats-text {
    color: var(--gray-600);
    margin-bottom: 12px;
}

.download-stats-text .number {
    color: var(--primary);
    font-weight: 700;
}

.stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.stars svg {
    width: 20px;
    height: 20px;
    fill: #FBBF24;
}

.stars-text {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-left: 8px;
}

/* ============================================
   更新日志
   ============================================ */
.changelog-section {
    background: white;
}

.changelog-container {
    max-width: 720px;
    margin: 0 auto;
}

.changelog-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.changelog-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.changelog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.changelog-date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.changelog-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.changelog-badge.major {
    background: rgba(0,180,42,0.1);
    color: var(--success);
}

.changelog-badge.feature {
    background: rgba(22,93,255,0.1);
    color: var(--primary);
}

.changelog-badge.fix {
    background: rgba(255,125,0,0.1);
    color: var(--warning);
}

.changelog-list {
    list-style: none;
}

.changelog-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: var(--gray-600);
}

.changelog-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300B42A' width='18' height='18'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.load-more-btn {
    display: block;
    margin: 32px auto 0;
    padding: 12px 32px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   FAQ - 优化样式
   ============================================ */
.faq-section {
    background: var(--gray-50);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.faq-item.open {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(22,93,255,0.03) 0%, rgba(15,198,194,0.03) 100%);
}

.faq-item.open .faq-question {
    background: linear-gradient(135deg, rgba(22,93,255,0.05) 0%, rgba(15,198,194,0.05) 100%);
    color: var(--primary);
}

.faq-question span {
    padding-right: 16px;
}

.faq-question .icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-question .icon svg {
    width: 18px;
    height: 18px;
    fill: var(--gray-500);
    transition: all 0.3s ease;
}

.faq-item.open .faq-question .icon {
    background: var(--primary);
    transform: rotate(180deg);
}

.faq-item.open .faq-question .icon svg {
    fill: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 24px 20px;
    margin: 0;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.9375rem;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

/* ============================================
   版本信息面板
   ============================================ */
.version-info-panel {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 32px;
}

.version-info-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.version-info-title .icon {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.version-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.version-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.version-info-item.full-width {
    grid-column: 1 / -1;
}

.version-info-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

@media (max-width: 640px) {
    .version-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   页脚 - 优化版
   ============================================ */
.footer {
    background: linear-gradient(180deg, #1a1f2e 0%, #0f1419 100%);
    color: white;
    padding: 80px 0 32px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 360px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--gray-500);
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column {
    padding-left: 0;
    border-left: none;
}

.footer-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    margin-bottom: 32px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-left {
    text-align: left;
}

.footer-bottom-left p {
    color: var(--gray-500);
    font-size: 0.8125rem;
    margin-bottom: 4px;
}

.footer-icp {
    color: var(--gray-600) !important;
    font-size: 0.75rem !important;
}

.footer-browser {
    color: var(--gray-600) !important;
    font-size: 0.75rem !important;
    margin-top: 4px;
}

.footer-bottom-right {
    color: var(--gray-500);
    font-size: 0.8125rem;
    font-family: monospace;
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: var(--radius);
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-links-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-links-group {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 24px;
    }
    
    .footer-column:first-child {
        border-top: none;
        padding-top: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-left {
        text-align: center;
    }
}

/* ============================================
   子页面通用样式
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 140px 0 80px;
    color: white;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 64px 0;
}

.content-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.content-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--dark);
}

.content-card p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-card ul {
    margin-left: 24px;
    color: var(--gray-600);
}

.content-card li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.content-card a {
    color: var(--primary);
    text-decoration: none;
}

.content-card a:hover {
    text-decoration: underline;
}

/* ============================================
   技术支持页面样式
   ============================================ */
.support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.support-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.support-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.support-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.support-icon.blue { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }
.support-icon.cyan { background: linear-gradient(135deg, var(--secondary) 0%, #3DD9D6 100%); }
.support-icon.green { background: linear-gradient(135deg, var(--success) 0%, #00D94C 100%); }

.support-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.support-card p {
    color: var(--gray-600);
    margin-bottom: 8px;
}

.support-time {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.faq-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.quick-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
}

.quick-link-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.quick-link:hover .quick-link-icon {
    background: white;
    color: var(--primary);
}

.troubleshoot-steps {
    margin-top: 24px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.step-content p {
    color: var(--gray-600);
    line-height: 1.7;
}

.ticket-form {
    margin-top: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22,93,255,0.1);
}

/* ============================================
   使用教程页面样式
   ============================================ */
.tutorial-steps {
    margin-top: 32px;
}

.tutorial-step {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-200);
}

.tutorial-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-line {
    width: 2px;
    flex: 1;
    background: var(--gray-200);
    margin: 8px 0;
}

.tutorial-step:last-child .step-line {
    display: none;
}

.step-detail h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.step-detail p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.step-tip {
    background: rgba(22,93,255,0.05);
    border-left: 4px solid var(--primary);
    padding: 16px;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--gray-600);
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.tutorial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tutorial-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tutorial-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.tutorial-icon.blue { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }
.tutorial-icon.cyan { background: linear-gradient(135deg, var(--secondary) 0%, #3DD9D6 100%); }
.tutorial-icon.green { background: linear-gradient(135deg, var(--success) 0%, #00D94C 100%); }

.tutorial-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

.tutorial-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.tutorial-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray-600);
}

.tutorial-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.video-item {
    background: var(--gray-50);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.video-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-icon {
    width: 64px;
    height: 64px;
    fill: white;
    opacity: 0.9;
    transition: var(--transition);
}

.video-item:hover .play-icon {
    opacity: 1;
    transform: scale(1.1);
}

.video-item h4 {
    padding: 16px 16px 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.video-item p {
    padding: 0 16px 16px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.video-item.locked {
    opacity: 0.7;
}

.video-item.locked .video-thumb {
    background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-500) 100%);
}

.lock-icon {
    width: 48px;
    height: 48px;
    fill: white;
    opacity: 0.9;
}

.locked-text {
    color: var(--gray-400) !important;
    font-style: italic;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--dark);
}

.data-table td {
    color: var(--gray-600);
}

.data-table tr:hover td {
    background: var(--gray-50);
}

/* 步骤样式 */
.steps {
    display: flex;
    gap: 24px;
    margin: 32px 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.step-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .versions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .os-selector {
        grid-template-columns: 1fr;
    }
    
    .download-main {
        padding: 28px;
    }
    
    .download-option {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .content-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .version-card {
        padding: 24px;
    }
    
    .download-stats {
        padding: 24px;
    }
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 延迟动画类 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* 滚动显示动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
