* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a84ff;
    --secondary-color: #98989d;
    --accent-color: #30d158;
    --text-dark: #f5f5f7;
    --text-light: #a1a1a6;
    --bg-dark: #0a0e17;
    --bg-elevated: #141824;
    --bg-card: #1a1f2e;
    --border-color: #2a2f3e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro SC', 'SF Pro Text', 'SF Pro Icons', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.47059;
    color: var(--text-dark);
    background: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar .container {
    padding: 0 20px;
    max-width: 100%;
}

/* SVG图标样式 */
.icon-small {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.icon-medium {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

.icon-large {
    width: 80px;
    height: 80px;
    color: var(--primary-color);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

svg {
    display: block;
}

.svg-symbols { display: none; }

a:focus-visible,
button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(20, 24, 36, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0;
    height: 44px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    height: 44px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 400;
    transition: opacity 0.3s;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.language-toggle {
    min-width: 64px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-dark);
    background: var(--bg-card);
    font: inherit;
    font-size: .8125rem;
    cursor: pointer;
}

.language-toggle:hover,
.language-toggle:focus-visible {
    border-color: var(--primary-color);
    outline: none;
}

.nav-link.active::after {
    display: none;
}

/* 首页 Hero */
.hero {
    margin-top: 44px;
    padding: 120px 0 100px;
    background: url('resource/hero-bg.svg') center center / cover no-repeat;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: -0.005em;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 14px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* 通用 Section */
.section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-alt {
    background: var(--bg-elevated);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.08;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.375rem;
    margin-bottom: 4rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* 产品卡片 */
.product-card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 3.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.product-icon {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.product-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.125rem;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    color: var(--text-dark);
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--border-color);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li span {
    flex: 1;
}

.product-status {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--primary-color);
    color: white;
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 400;
}

/* 开发者资源 */
.frameworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.framework-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.framework-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    border-color: var(--primary-color);
}

.framework-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.framework-card h3 {
    font-size: 1.625rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.framework-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.5;
}

.link-button {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.0625rem;
    transition: opacity 0.3s;
}

.link-button:hover {
    opacity: 0.7;
}

.link-disabled {
    color: var(--text-light);
    cursor: default;
}

/* 关于我们 */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 18px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.member-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--bg-elevated);
    border-radius: 50%;
    flex-shrink: 0;
}

.member-info h4 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-info p {
    color: var(--text-light);
    font-size: 1.0625rem;
}

.update-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-left: 2px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.update-icon {
    flex-shrink: 0;
}

.update-content {
    flex: 1;
}

.update-date {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.blog-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 18px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.blog-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.blog-section h3 {
    margin-top: 0;
}

.blog-section p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

/* 页脚 */
.footer {
    background: var(--bg-elevated);
    color: var(--text-light);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.icp-info {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.icp-link {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s;
}

.icp-link:hover {
    opacity: 0.7;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* 隐私说明页 */
.legal-page { padding: 96px 0 80px; min-height: calc(100vh - 180px); }
.legal-container { max-width: 920px; }
.legal-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.legal-header h1 { margin-bottom: 1rem; font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.1; }
.legal-meta, .legal-summary, .legal-note { color: var(--text-light); }
.legal-summary { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.75; }
.legal-toc, .legal-section { margin-bottom: 2.5rem; padding: 2rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; }
.legal-toc h2, .legal-section h2 { margin-bottom: 1.25rem; font-size: 1.55rem; line-height: 1.3; }
.legal-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 2rem; padding-left: 1.3rem; }
.legal-toc a { color: var(--primary-color); text-decoration: none; }
.legal-section h3 { margin: 1.5rem 0 .75rem; font-size: 1.15rem; }
.legal-section p, .legal-section li { color: var(--text-light); font-size: 1rem; line-height: 1.8; }
.legal-section p + p { margin-top: .8rem; }
.legal-section ul { margin: .75rem 0 0 1.25rem; }
.legal-section li + li { margin-top: .55rem; }
.legal-section strong { color: var(--text-dark); }
.legal-section a,
.legal-section a:visited,
.legal-section a:hover,
.legal-section a:focus,
.legal-section a:active {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}
.legal-note { margin-top: 1rem; padding: 1rem 1.25rem; background: var(--bg-elevated); border-left: 3px solid var(--primary-color); border-radius: 8px; line-height: 1.7; }
.legal-back { color: var(--text-dark); text-decoration: none; font-size: .875rem; }
.legal-back:hover { color: var(--primary-color); }
.legal-actions { display: flex; align-items: center; gap: 1rem; }
[data-lang-content][hidden] { display: none; }
.legal-region-list { display: grid; gap: .8rem; }
.legal-section a { overflow-wrap: anywhere; }

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        gap: .75rem;
    }

    .nav-menu li:nth-child(3), .nav-menu li:nth-child(4) { display: none; }
    .logo span { display: none; }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    .hero-description {
        font-size: 1.0625rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-intro {
        font-size: 1.125rem;
    }
    
    .product-card {
        padding: 2rem;
    }
    
    .frameworks-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
    }

    .legal-page { padding-top: 76px; }
    .legal-toc, .legal-section { padding: 1.4rem; }
    .legal-toc ol { grid-template-columns: 1fr; }
    .legal-actions { gap: .6rem; }
}
