:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --bg-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --bg-light: #f8f9ff;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 导航 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon { width: 32px; height: 32px; }

.logo-text {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content { flex: 1; max-width: 600px; }

.hero-logo {
    height: 48px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    line-height: 1.6;
}

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

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.shape-1 {
    width: 300px; height: 300px;
    background: var(--accent);
    top: 20px; right: 20px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px; height: 200px;
    background: var(--primary-light);
    bottom: 40px; right: 100px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px; height: 150px;
    background: var(--secondary);
    top: 100px; right: 200px;
    animation: float 7s ease-in-out infinite 1s;
}

.shape-4 {
    width: 100px; height: 100px;
    background: var(--accent);
    bottom: 100px; right: 40px;
    animation: float 5s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-large { padding: 16px 36px; font-size: 17px; }

.btn-block { width: 100%; }

.btn-sm { padding: 8px 18px; font-size: 13px; }

/* Section */
section { padding: 80px 0; }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg-card);
    padding: 32px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.category-icon { font-size: 48px; margin-bottom: 12px; }

.category-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }

.category-count { font-size: 13px; color: var(--text-muted); }

/* CTA */
.cta {
    background: var(--bg-gradient);
    text-align: center;
    padding: 100px 0;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-logo { height: 36px; margin-bottom: 16px; }

.footer-desc { font-size: 14px; line-height: 1.6; margin-bottom: 20px; max-width: 320px; }

.footer-social { display: flex; gap: 12px; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #cbd5e1;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.social-link svg { width: 20px; height: 20px; }

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

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

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

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.admin-link {
    color: var(--primary-light);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.admin-link:hover { opacity: 1; }

/* About page */
.page-hero {
    padding: 120px 0 60px;
    background: var(--bg-gradient);
    text-align: center;
    color: #fff;
}

.page-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 8px; }
.page-hero p { font-size: 18px; opacity: 0.85; }

.brand-story { padding: 80px 0; }

.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.story-text h2 { font-size: 32px; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.story-text p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }

.story-image {
    position: relative;
    height: 300px;
}

.story-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--bg-gradient);
    opacity: 0.15;
}

.story-shape:nth-child(1) { width: 200px; height: 200px; top: 20px; left: 20px; }
.story-shape:nth-child(2) { width: 150px; height: 150px; bottom: 20px; right: 40px; }
.story-shape:nth-child(3) { width: 100px; height: 100px; top: 80px; right: 80px; }

.mission-vision { background: #fff; padding: 80px 0; }

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mv-card {
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.mv-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.mv-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; color: var(--primary); }
.mv-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--bg-card);
    padding: 28px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

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

.team-avatar {
    font-size: 56px;
    margin-bottom: 12px;
}

.team-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: 14px; color: var(--primary); font-weight: 500; margin-bottom: 8px; }
.team-desc { font-size: 13px; color: var(--text-muted); }

.timeline { padding: 80px 0; background: #fff; }

.timeline-list { max-width: 700px; margin: 0 auto; position: relative; padding-left: 40px; }

.timeline-list::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

.tl-year {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.tl-content h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.tl-content p { font-size: 14px; color: var(--text-secondary); }

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h2 { font-size: 28px; font-weight: 700; margin-bottom: 24px; }

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-icon { font-size: 24px; line-height: 1; }

.info-item strong { font-size: 14px; color: var(--text-primary); }
.info-item a { color: var(--primary); text-decoration: none; }
.info-item a:hover { text-decoration: underline; }

.contact-social { margin-top: 32px; }
.contact-social h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }

.social-row { display: flex; flex-direction: column; gap: 8px; }
.social-link-large {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.social-link-large:hover { color: var(--primary-dark); text-decoration: underline; }

.contact-form-wrapper { background: var(--bg-card); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.contact-form-wrapper h2 { font-size: 24px; font-weight: 600; margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    transition: border-color 0.3s;
    background: #fff;
}

.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(99,102,241,0.1);
}

.form-success {
    padding: 24px;
    background: #ecfdf5;
    border: 2px solid #34d399;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 500;
    color: #065f46;
    text-align: center;
}

.map-section { background: #fff; padding: 60px 0; text-align: center; }
.map-section h2 { font-size: 24px; font-weight: 600; margin-bottom: 20px; }

.map-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.map-marker { font-size: 48px; margin-bottom: 12px; }
.map-hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* Apps page */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border);
    background: #fff;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.app-card {
    background: var(--bg-card);
    padding: 28px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.app-card.featured { border-color: var(--primary-light); box-shadow: 0 0 0 2px var(--primary-light); }

.app-icon { font-size: 48px; margin-bottom: 12px; }

.app-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.app-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(99,102,241,0.08);
    padding: 2px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.app-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }

/* 响应式 */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hamburger { display: flex; }

    .hero { padding: 100px 0 60px; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-title { font-size: 32px; }
    .hero-visual { height: 200px; width: 100%; }
    .hero-buttons { justify-content: center; }

    .features-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .apps-grid { grid-template-columns: 1fr; }
    .story-container { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }

    .section-title { font-size: 28px; }
    .cta-title { font-size: 28px; }
    .page-hero h1 { font-size: 30px; }

    .hero-logo { margin: 0 auto 16px; }
}

@media (max-width: 375px) {
    .hero-title { font-size: 26px; }
    .btn { padding: 10px 20px; font-size: 14px; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* 通用动画 */
.fade-in { animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 管理后台样式补充 */
.admin-panel .container { max-width: 1200px; }
.admin-panel .btn-outline { border-color: var(--border); color: var(--text-primary); background: #fff; }
.admin-panel .btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.admin-panel .btn-primary { background: var(--primary); color: #fff; border: none; }