/* ============================================
   番薯藤-SU渲染助手 - Corbusier 版本网站样式
   设计灵感：勒·柯布西耶的现代主义美学
   ============================================ */

/* 柯布西耶配色系统 */
:root {
    /* 柯布西耶五色系 */
    --lc-blue: #1E3A8A;
    --lc-red: #DC2626;
    --lc-yellow: #F59E0B;
    --lc-white: #FAFAFA;
    --lc-black: #1A1A1A;

    /* 扩展色 */
    --lc-gray: #64748B;
    --lc-light: #F1F5F9;
    --lc-concrete: #94A3B8;

    /* 功能色 */
    --primary: var(--lc-blue);
    --accent: var(--lc-red);
    --highlight: var(--lc-yellow);

    /* 间距 */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* 重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--lc-white);
    color: var(--lc-black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==================== 几何装饰背景 ==================== */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.geo-circle,
.geo-rect {
    position: absolute;
    opacity: 0.05;
}

.geo-circle {
    border-radius: 50%;
    border: 3px solid var(--lc-blue);
}

.geo-rect {
    background: var(--lc-red);
}

.geo-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -100px;
}

.geo-2 {
    width: 80px;
    height: 200px;
    top: 40%;
    left: 5%;
}

.geo-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 10%;
    border-color: var(--lc-yellow);
}

.geo-4 {
    width: 60px;
    height: 120px;
    bottom: 10%;
    left: 15%;
    background: var(--lc-blue);
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: var(--space-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 700;
    font-size: 18px;
}

.brand-logo {
    font-size: 28px;
    animation: potato-bounce 2s ease-in-out infinite;
}

@keyframes potato-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.brand-logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-links a {
    color: var(--lc-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ==================== 英雄区 ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-xl) 0;
    padding-top: 120px;
    position: relative;
    background: linear-gradient(180deg, var(--lc-white) 0%, var(--lc-light) 100%);
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-icon {
    margin-bottom: var(--space-lg);
}

.glasses-large {
    font-size: 80px;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.architect-quote {
    font-size: 14px;
    color: var(--lc-gray);
    font-style: italic;
    margin-bottom: 4px;
}

.architect-name {
    font-size: 12px;
    color: var(--lc-concrete);
}

.hero-title {
    margin-bottom: var(--space-md);
}

.title-main {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--lc-black);
    letter-spacing: -1px;
}

.title-version {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: var(--lc-white);
    background: var(--primary);
    padding: 6px 20px;
    border-radius: 20px;
    margin-top: var(--space-sm);
}

.hero-desc {
    font-size: 16px;
    color: var(--lc-gray);
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* 柯布西耶五色条 */
.color-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    height: 8px;
}

.color-bar.bottom {
    position: relative;
}

.color-stripe {
    flex: 1;
}

.color-stripe.blue {
    background: var(--lc-blue);
}

.color-stripe.red {
    background: var(--lc-red);
}

.color-stripe.yellow {
    background: var(--lc-yellow);
}

.color-stripe.white {
    background: #E5E7EB;
}

.color-stripe.black {
    background: var(--lc-black);
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    background: #1E40AF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--lc-black);
    border: 2px solid var(--lc-black);
}

.btn-secondary:hover {
    background: var(--lc-black);
    color: white;
}

.btn-download {
    background: var(--accent);
    color: white;
    font-size: 18px;
    padding: 18px 40px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-download:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* ==================== 区块标题 ==================== */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.section-title.light {
    color: white;
}

.title-icon {
    color: var(--accent);
    font-size: 16px;
}

/* ==================== 功能特点 ==================== */
.features {
    padding: var(--space-xl) 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    background: var(--lc-light);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--space-sm);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--lc-black);
}

.feature-card p {
    font-size: 14px;
    color: var(--lc-gray);
}

/* ==================== 下载区 ==================== */
.download {
    padding: var(--space-xl) 0;
    background: var(--primary);
    position: relative;
}

.download-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.version-badge {
    background: var(--highlight);
    color: var(--lc-black);
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

.download-info {
    flex: 1;
    min-width: 200px;
}

.download-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.version-text {
    font-size: 14px;
    color: var(--lc-gray);
}

.compat-text {
    font-size: 12px;
    color: var(--lc-concrete);
}

.download-actions {
    flex-shrink: 0;
}

.install-steps {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    color: white;
}

.install-steps h3 {
    font-size: 18px;
    margin-bottom: var(--space-sm);
}

.install-steps ol {
    padding-left: 24px;
}

.install-steps li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.8;
}

.install-steps code {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* ==================== 关于区 ==================== */
.about {
    padding: var(--space-xl) 0;
    background: var(--lc-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-lg);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--space-sm);
    font-size: 15px;
    color: var(--lc-gray);
}

.about-text .quote {
    font-style: italic;
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: var(--space-sm);
    margin-top: var(--space-md);
}

/* 模数网格装饰 */
.modulor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    aspect-ratio: 1;
}

.grid-cell {
    background: white;
    border-radius: var(--radius-sm);
    transition: transform 0.3s;
}

.grid-cell:hover {
    transform: scale(1.05);
}

.grid-cell.accent-blue {
    background: var(--lc-blue);
}

.grid-cell.accent-red {
    background: var(--lc-red);
}

.grid-cell.accent-yellow {
    background: var(--lc-yellow);
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--lc-black);
    color: white;
    padding: var(--space-lg) 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    color: var(--lc-concrete);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    font-size: 12px;
    color: var(--lc-concrete);
}

/* ==================== 番薯藤动画装饰 ==================== */
.vine-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.vine {
    position: absolute;
    height: 400px;
    width: 50px;
    opacity: 0.2;
}

.vine-1 {
    left: 10px;
    top: 100px;
    animation: vine-sway 8s ease-in-out infinite;
}

.vine-2 {
    right: 10px;
    top: 200px;
    animation: vine-sway 10s ease-in-out infinite reverse;
}

@keyframes vine-sway {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(5px) rotate(1deg);
    }

    75% {
        transform: translateX(-5px) rotate(-1deg);
    }
}

.vine-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: vine-grow 3s ease-out forwards;
}

@keyframes vine-grow {
    to {
        stroke-dashoffset: 0;
    }
}

.leaf {
    opacity: 0;
    animation: leaf-appear 0.5s ease-out forwards;
}

.leaf-1 {
    animation-delay: 1s;
}

.leaf-2 {
    animation-delay: 1.5s;
}

.leaf-3 {
    animation-delay: 2s;
}

@keyframes leaf-appear {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.potato {
    opacity: 0;
    animation: potato-appear 0.8s ease-out forwards;
    animation-delay: 2s;
}

@keyframes potato-appear {
    from {
        opacity: 0;
        transform: scale(0) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Logo 大图标 */
.logo-large {
    font-size: 80px;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: logo-float 3s ease-in-out infinite;
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

/* Logo 大图标 (图片版) */
.logo-large-img {
    height: 200px;
    width: auto;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: logo-float 3s ease-in-out infinite;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {

    /* 导航 */
    .nav-links {
        display: none;
    }

    .nav-container {
        padding: 0 var(--space-md);
    }

    /* 英雄区 */
    .hero-section {
        padding: var(--space-xl) var(--space-md);
        min-height: auto;
    }

    .logo-large-img {
        height: 120px;
    }

    .title-main {
        font-size: 28px;
    }

    .title-version {
        font-size: 14px;
        padding: 6px 16px;
    }

    .hero-desc {
        font-size: 14px;
        padding: 0 var(--space-sm);
    }

    .hero-quote {
        font-size: 14px;
        padding: 0 var(--space-md);
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* 功能区 */
    .features-section {
        padding: var(--space-xl) var(--space-md);
    }

    .section-title {
        font-size: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .feature-card {
        padding: var(--space-lg);
    }

    /* 下载区 */
    .download-section {
        padding: var(--space-xl) var(--space-md);
    }

    .download-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .version-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .download-info h3 {
        font-size: 18px;
    }

    .download-actions {
        flex-direction: column;
        width: 100%;
    }

    .download-actions .btn {
        width: 100%;
    }

    /* 关于区 */
    .about-section {
        padding: var(--space-xl) var(--space-md);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-visual {
        display: none;
    }

    /* 安装步骤 */
    .install-steps {
        padding: 0;
    }

    .step-item {
        font-size: 13px;
    }

    /* 页脚 */
    .footer {
        padding: var(--space-lg) var(--space-md);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .title-main {
        font-size: 24px;
    }

    .logo-large-img {
        height: 100px;
    }

    .section-title {
        font-size: 20px;
    }

    .feature-icon {
        font-size: 32px;
    }

    .feature-card h3 {
        font-size: 16px;
    }
}