/* ============================================
   佛山市南海区爱惠优品食品批发商行 - 企业官网样式
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --secondary: #f39c12;
    --dark: #2c3e50;
    --dark-light: #34495e;
    --gray: #7f8c8d;
    --gray-light: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.8;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

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

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 18px;
    color: var(--dark);
    line-height: 1.3;
}

.logo-text p {
    font-size: 12px;
    color: var(--gray);
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-list a {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 15px;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44,62,80,0.85) 0%, rgba(231,76,60,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    max-width: 700px;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    width: fit-content;
}

.hero-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243,156,18,0.4);
}

/* ============================================
   Section Common Styles
   ============================================ */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 16px;
    color: var(--gray);
    margin-top: 20px;
}

.section-alt {
    background: var(--gray-light);
}

/* ============================================
   Features / Stats
   ============================================ */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 10px;
}

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

/* ============================================
   Category Section
   ============================================ */
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: var(--white);
}

.category-overlay h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.category-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   Products Grid
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

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

.product-img {
    width: 100%;
    height: 200px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 16px;
}

.product-info h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info .product-desc {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-info .product-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #fff3f3;
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 4px;
}

.product-info .product-tag.blue {
    background: #f0f4ff;
    color: #3498db;
}

.product-info .product-tag.green {
    background: #f0fff4;
    color: #27ae60;
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-text h3 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 15px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    padding: 8px 0;
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 30px 16px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--gray-light);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 14px;
    color: var(--gray);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* Map placeholder */
.map-placeholder {
    width: 100%;
    height: 350px;
    background: var(--gray-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    color: var(--gray);
    font-size: 16px;
    border: 2px dashed #ccc;
}

/* ============================================
   Page Banner (inner pages)
   ============================================ */
.page-banner {
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.page-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44,62,80,0.7);
}

.page-banner .banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h2 {
    font-size: 40px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--gray);
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

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

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
    padding-left: 4px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

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

.footer-bottom a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ============================================
   Scope / Business Items
   ============================================ */
.scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.scope-card {
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

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

.scope-card h4 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
}

.scope-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   Product Detail Modal Styles
   ============================================ */
.product-detail-section {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-detail-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--gray-light);
}

.product-detail-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-detail-info h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 12px;
}

.product-detail-info .detail-price {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.product-detail-info .detail-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
}

.detail-specs {
    margin-top: 20px;
}

.detail-specs li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #555;
    display: flex;
    gap: 10px;
}

.detail-specs li span:first-child {
    color: var(--gray);
    min-width: 80px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header .container { height: 64px; }
    .nav-list { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero { height: 450px; }
    .hero-content h2 { font-size: 32px; }
    .hero-content p { font-size: 16px; }
    
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 28px; }
    
    .features { grid-template-columns: 1fr; gap: 16px; }
    .categories { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .scope-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .page-banner { height: 220px; }
    .page-banner h2 { font-size: 28px; }
    
    .product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .hero-content h2 { font-size: 26px; }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
