/* ========================================
   下饭AI兄弟店 - 品牌样式
   ======================================== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 品牌色 - 基于Logo */
    --primary-red: #FF3333;
    --primary-orange: #FFB703;
    --primary-yellow: #FFD93D;
    --warm-cream: #FFF8F0;

    /* 中性色 */
    --text-dark: #2D3748;
    --text-gray: #4A5568;
    --text-light: #718096;
    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --border-color: #E2E8F0;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* 过渡 */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

/* ========================================
   导航栏
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

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

.logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-red);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   Hero 区域
   ======================================== */

.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--warm-cream) 0%, #FFEFD5 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--primary-red);
    display: inline-block;
    position: relative;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.feature-tag {
    padding: 8px 20px;
    background: var(--bg-white);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-red);
    box-shadow: var(--shadow-sm);
}

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

/* ========================================
   按钮样式
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, #FF6B6B 100%);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--bg-white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--bg-white);
}

.btn-outline-light {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-outline-light:hover {
    background: var(--bg-white);
    color: var(--primary-red);
}

/* ========================================
   产品展示区
   ======================================== */

.products {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 56px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 2px solid var(--border-color);
}

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

.product-card.featured {
    border-color: var(--primary-orange);
    background: linear-gradient(135deg, var(--warm-cream) 0%, var(--bg-white) 100%);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    color: var(--bg-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--bg-white);
}

.product-icon svg {
    width: 32px;
    height: 32px;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-tagline {
    font-size: 16px;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 16px;
}

.product-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 15px;
}

.product-pricing {
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-range {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 4px;
}

.price-note {
    font-size: 14px;
    color: var(--text-light);
}

/* ========================================
   合作邀请区
   ======================================== */

.partnership {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    color: var(--bg-white);
}

.partnership-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.partnership-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.partnership-content > p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.partnership-points {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.point {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.partnership-cta-text {
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 500;
}

/* ========================================
   联系我们区
   ======================================== */

.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.contact-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warm-cream) 0%, #FFEFD5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
}

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

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

.contact-card p {
    font-size: 16px;
    color: var(--text-gray);
}

/* ========================================
   页脚
   ======================================== */

.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

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

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
        padding: 16px 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-features {
        gap: 8px;
    }

    .feature-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .product-card {
        padding: 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选中文本颜色 */
::selection {
    background: var(--primary-orange);
    color: var(--bg-white);
}
