/* ============================================================
   林枫OFD 官网样式 - Modern Clean Design
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #1976D2;
    --primary-dark: #1565C0;
    --primary-light: #42A5F5;
    --accent: #4CAF50;
    --accent-dark: #388E3C;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 50px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: all var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}
.nav-logo { width: 32px; height: 32px; }
.nav-menu { display: flex; gap: 4px; }
.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.nav-link:hover { color: var(--primary); background: rgba(25,118,210,.06); }
.nav-link.active { color: var(--primary); background: rgba(25,118,210,.1); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 30%, #e8f5e9 60%, #e3f2fd 100%);
    z-index: -2;
}
.hero-bg::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(25,118,210,.12) 0%, transparent 70%);
    top: -100px; right: -150px;
    border-radius: 50%;
}
.hero-bg::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(76,175,80,.1) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; }
.hero-icon { margin: 0 auto 24px; animation: float 3s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}
.hero-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 36px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(25,118,210,.08);
    letter-spacing: 2px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(25,118,210,.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25,118,210,.45);
}
.btn-outline {
    background: rgba(255,255,255,.7);
    color: var(--text);
    border: 1.5px solid var(--border);
    backdrop-filter: blur(4px);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ---- Section ---- */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ---- Features Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon svg { width: 32px; height: 32px; }
.feature-icon.blue   { background: #e3f2fd; color: var(--primary); }
.feature-icon.green  { background: #e8f5e9; color: var(--accent); }
.feature-icon.purple { background: #f3e5f5; color: #7B1FA2; }
.feature-icon.orange { background: #fff3e0; color: #E65100; }
.feature-icon.teal   { background: #e0f2f1; color: #00695C; }
.feature-icon.red    { background: #ffebee; color: #C62828; }
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Platforms ---- */
.platforms { background: var(--bg-white); }
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.platform-card {
    text-align: center;
    padding: 40px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    background: var(--bg);
}
.platform-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}
.platform-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd, #e8f5e9);
}
.platform-icon svg { width: 40px; height: 40px; color: var(--primary); }
.platform-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.arch {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    font-family: "SF Mono", "Fira Code", monospace;
    margin-bottom: 12px;
}
.tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.tag.ready {
    background: #e8f5e9;
    color: var(--accent-dark);
}

/* ---- Standards ---- */
.standards { padding: 60px 0; }
.standards-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.standard-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.standard-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f5e9;
    color: var(--accent);
}
.standard-icon svg { width: 28px; height: 28px; }
.standard-item h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}
.standard-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ---- Changelog ---- */
.changelog { background: var(--bg-white); }
.timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-left: 36px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 9px; top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -36px; top: 4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--border);
    z-index: 1;
}
.timeline-dot.current {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(76,175,80,.2);
}
.timeline-version {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-right: 12px;
}
.timeline-date {
    font-size: 13px;
    color: var(--text-light);
}
.timeline-content p {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ---- Download ---- */
.download { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-white) 100%); }
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.download-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}
.download-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.download-badge {
    position: absolute;
    top: -12px; right: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.download-os {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd, #e8f5e9);
}
.download-os svg { width: 36px; height: 36px; color: var(--primary); }
.download-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.download-ver {
    display: block;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    font-family: "SF Mono", "Fira Code", monospace;
}
.download-size {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}
.download-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 40px;
}
.btn-dl { width: 100%; justify-content: center; }

/* ---- About ---- */
.about { background: var(--bg-white); }
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.about-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: all var(--transition);
}
.about-card:hover { border-color: var(--primary-light); }
.about-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
}
.about-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.about-card a {
    color: var(--primary);
    font-weight: 500;
}
.about-card a:hover { text-decoration: underline; }
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tech-tags span {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: "SF Mono", "Fira Code", monospace;
}

/* ---- Footer ---- */
.footer {
    background: var(--text);
    color: #94a3b8;
    padding: 48px 0 32px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}
.footer-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: block;
}
.footer-desc {
    font-size: 13px;
    color: #64748b;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    font-size: 14px;
    color: #94a3b8;
    transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 24px; }
.footer-bottom p { font-size: 13px; text-align: center; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 260px; height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 80px 24px 24px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        gap: 8px;
    }
    .nav-menu.open { right: 0; }
    .nav-toggle { display: flex; z-index: 1001; }
    .nav-link { padding: 12px 16px; font-size: 16px; }
    .section { padding: 72px 0; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 260px; justify-content: center; }
    .footer-inner { flex-direction: column; text-align: center; }
    .features-grid { grid-template-columns: 1fr; }
    .platforms-grid { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; }
    .standards-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 100px 16px 60px; }
    .feature-card { padding: 24px; }
    .download-card { padding: 28px 20px; }
}
