/* 周炜食品官方网站全局样式 */
:root {
    --primary-color: #c62828;
    --primary-dark: #b71c1c;
    --primary-light: #ef5350;
    --accent-color: #ff9800;
    --text-primary: #212121;
    --text-secondary: #666;
    --bg-primary: #fffaf5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #43a047;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.2rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.88) 0%, rgba(183, 28, 28, 0.85) 100%), 
                url('/assets/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 7rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 152, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: #fff8e1;
}

/* Section */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: var(--primary-dark);
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 4.5rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

.advantage-card:hover::before {
    height: 100%;
}

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

.advantage-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #ffebee 0%, #ffccbc 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.product-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: white;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.product-content {
    padding: 2.5rem;
}

.product-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.product-features {
    list-style: none;
    margin-bottom: 1.8rem;
}

.product-features li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.product-features li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: 700;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.product-specs {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-color);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-content h3,
.footer-content h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-content p {
    color: #bdbdbd;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid #333;
    color: #757575;
    font-size: 0.95rem;
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-links {
        gap: 1.2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        gap: 0.8rem;
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
}
