/* ==========================================
   广东中瑞制罐有限公司 - 官方网站样式
   深蓝+橙色调 · 现代商务制造业风格
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: "Noto Sans SC", -apple-system, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif; color: #383838; line-height: 1.6; overflow-x: hidden; font-size: 14px; background: #fff; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== COLORS ===== */
:root {
    --primary: #2B5DD5;
    --primary-light: #4A7FE8;
    --primary-dark: #1A4AB5;
    --accent: #F58220;
    --accent-dark: #D4701A;
    --accent-light: #F8A34D;
    --text: #383838;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --bg-dark: #1A4AB5;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== TOP BAR ===== */
.top-bar { background: var(--primary-dark); color: rgba(255,255,255,0.8); font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-right { display: flex; align-items: center; gap: 15px; }
.lang-switcher { display: flex; align-items: center; gap: 6px; }
.lang-option { cursor: pointer; font-size: 12px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 4px; transition: var(--transition); padding: 3px 8px; border-radius: 4px; }
.lang-option i { font-size: 11px; }
.lang-option:hover, .lang-option.active { color: var(--white); background: rgba(255,255,255,0.1); }
.lang-option img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.lang-divider { color: rgba(255,255,255,0.3); font-size: 11px; }

/* ===== HEADER ===== */
.header { background: var(--primary-dark); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; transition: var(--transition); }
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo h1 { font-size: 22px; color: var(--white); font-weight: 700; }
.logo small { font-size: 11px; color: rgba(255,255,255,0.7); display: block; }
.nav ul { display: flex; gap: 5px; }
.nav a { padding: 8px 14px; font-size: 14px; color: rgba(255,255,255,0.85); border-radius: 6px; transition: var(--transition); }
.nav a:hover, .nav a.active { background: rgba(255,255,255,0.15); color: var(--white); }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: var(--white); border-radius: 3px; }

/* ===== HERO ===== */
.hero { position: relative; height: 100vh; min-height: 500px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.8s ease; }
.hero-slide.active { opacity: 1; }
.hero-content { text-align: center; color: var(--white); padding: 40px; max-width: 800px; }
.hero-content h1 { font-size: 48px; margin-bottom: 15px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-content p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }
.hero-content .btn { margin: 0 8px; }
.hero-controls { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-controls .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition); }
.hero-controls .dot.active { background: var(--white); width: 30px; border-radius: 6px; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 12px 30px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(245,130,32,0.3); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* ===== QUICK NAV ===== */
.quick-nav { padding: 40px 0; background: var(--white); }
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 10px; border-radius: var(--radius); background: var(--bg-light); transition: var(--transition); text-align: center; }
.quick-item:hover { background: var(--primary); color: var(--white); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.quick-item i { font-size: 28px; color: var(--accent); }
.quick-item:hover i { color: var(--white); }
.quick-item span { font-size: 13px; font-weight: 500; }

/* ===== STATS ===== */
.stats { padding: 60px 0; background: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.stat-item { text-align: center; color: var(--primary); padding: 20px; }
.stat-number { font-size: 40px; font-weight: 800; margin-bottom: 5px; }
.stat-label { font-size: 14px; opacity: 0.85; color: var(--text-light); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-light { background: var(--white); }
.section-dark { background: var(--bg-light); }
.section-orange { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: var(--white); }
.section-orange .section-header p { color: rgba(255,255,255,0.85); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 30px; color: var(--primary); margin-bottom: 10px; position: relative; display: inline-block; letter-spacing: -0.5px; }
.section-header h2::after { content: ''; display: block; width: 48px; height: 3px; background: var(--accent); margin: 12px auto 0; border-radius: 2px; }
.section-dark .section-header h2, .section-orange .section-header h2 { color: inherit; }
.section-orange .section-header h2::after { background: var(--white); }
.section-header p { font-size: 15px; color: var(--text-light); }

/* ===== ABOUT ===== */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-text h3 { font-size: 22px; color: var(--primary); margin-bottom: 15px; }
.about-text p { margin-bottom: 12px; color: var(--text-light); line-height: 1.8; }
.sub-link { display: inline-block; padding: 8px 16px; margin: 5px; background: var(--bg-light); border-radius: 12px; font-size: 13px; color: var(--primary); transition: var(--transition); }
.sub-link:hover { background: var(--primary); color: var(--white); }
.sub-link i { font-size: 10px; }
.about-certs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cert-badge { padding: 15px; background: var(--bg-light); border-radius: var(--radius); text-align: center; font-size: 14px; font-weight: 600; color: var(--primary); }
.cert-badge i { display: block; font-size: 24px; margin-bottom: 5px; color: var(--accent); }

/* ===== PRODUCTS ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.product-card { background: var(--white); padding: 25px 20px 30px; border-radius: var(--radius); text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04); transition: all 0.2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04); }
.product-icon { width: 64px; height: 64px; margin: 0 auto 15px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.product-icon i { font-size: 28px; color: var(--white); }
.product-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.product-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ===== ADVANTAGES ===== */
.adv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.adv-item { text-align: center; padding: 25px 15px; }
.adv-item i { font-size: 40px; margin-bottom: 15px; color: var(--white); background: rgba(255,255,255,0.2); width: 80px; height: 80px; line-height: 80px; border-radius: 50%; }
.adv-item h4 { font-size: 16px; margin-bottom: 8px; }
.adv-item p { font-size: 13px; opacity: 0.85; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; }
.gallery-placeholder { aspect-ratio: 1; background: linear-gradient(135deg, #e8edf2 0%, #d5dce2 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--radius); transition: var(--transition); }
.gallery-placeholder:hover { transform: scale(1.03); }
.gallery-placeholder i { font-size: 40px; color: #b0b8c0; margin-bottom: 10px; }
.gallery-placeholder span { font-size: 14px; color: #8a94a0; }

/* ===== FACTORY ===== */
.factory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.factory-item { border-radius: var(--radius); overflow: hidden; }
.factory-placeholder { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--radius); transition: var(--transition); }
.factory-placeholder:hover { transform: scale(1.03); }
.factory-placeholder i { font-size: 36px; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.factory-placeholder span { font-size: 14px; color: rgba(255,255,255,0.8); }

/* ===== CUSTOM CASES ===== */
.case-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; position: relative; }
.case-flow::before { content: ''; position: absolute; top: 35px; left: 10%; width: 80%; height: 2px; background: var(--accent); opacity: 0.3; }
.case-step { text-align: center; padding: 20px; position: relative; }
.step-num { display: inline-block; width: 50px; height: 50px; line-height: 50px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 18px; font-weight: 700; margin-bottom: 15px; }
.case-step h4 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.case-step p { font-size: 13px; color: var(--text-light); }
.section-light .case-step h4 { color: var(--primary); }

/* ===== CLIENTS ===== */
.client-intro { text-align: center; margin-bottom: 30px; color: var(--text-light); font-size: 14px; }
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.client-tag { padding: 10px 24px; background: var(--white); border: 1px solid #e0e5ea; border-radius: 12px; font-size: 14px; color: var(--text); transition: var(--transition); }
.client-tag:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-2px); }

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.news-card { background: var(--white); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-date { display: flex; flex-direction: column; align-items: center; width: 55px; background: var(--accent); color: var(--white); border-radius: 8px; padding: 5px; margin-bottom: 15px; }
.news-date .day { font-size: 18px; font-weight: 700; }
.news-date .month { font-size: 10px; opacity: 0.85; }
.news-card h4 { font-size: 15px; color: var(--primary); margin-bottom: 8px; line-height: 1.4; }
.news-card p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; line-height: 1.6; }
.read-more { font-size: 13px; color: var(--accent); font-weight: 600; }
.read-more i { transition: var(--transition); }
.read-more:hover i { margin-left: 5px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-info h3 { font-size: 18px; margin-bottom: 20px; color: var(--primary); }
.contact-info p { margin-bottom: 10px; font-size: 14px; color: var(--text-light); }
.contact-info i { width: 20px; color: var(--accent); margin-right: 5px; }
.contact-info strong { color: var(--text); }
.contact-form h3 { font-size: 18px; margin-bottom: 20px; color: var(--primary); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; transition: var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,130,32,0.1); }
.contact-form button { width: 100%; }
.contact-map h3 { font-size: 18px; margin-bottom: 20px; color: var(--primary); }
.map-placeholder { background: var(--bg-light); padding: 40px; text-align: center; border-radius: var(--radius); }
.map-placeholder i { font-size: 40px; color: var(--accent); margin-bottom: 10px; }
.map-placeholder p { font-size: 13px; color: var(--text-light); }

/* ===== FOOTER ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 15px; font-size: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-col p { font-size: 13px; line-height: 1.8; margin-bottom: 5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; transition: var(--transition); }
.footer-col ul a:hover { color: var(--accent); padding-left: 5px; }
.footer-col i { width: 20px; color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 12px; }
.footer-bottom a { color: var(--accent); }

/* ===== FLOAT BAR ===== */
.float-bar { position: fixed; right: 20px; bottom: 30px; display: flex; flex-direction: column; gap: 8px; z-index: 999; }
.float-item { width: 48px; height: 48px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: var(--transition); box-shadow: var(--shadow); }
.float-item:hover { background: var(--accent); transform: scale(1.1); }
.float-top { background: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .quick-grid { grid-template-columns: repeat(4, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .adv-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .factory-grid { grid-template-columns: repeat(2, 1fr); }
    .case-flow { grid-template-columns: repeat(2, 1fr); }
    .case-flow::before { display: none; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav { display: none; position: fixed; top: 70px; left: 0; width: 100%; background: var(--primary-dark); box-shadow: var(--shadow); }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; padding: 20px; }
    .hamburger { display: flex; }
    .hero { height: 400px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 14px; }
    .about-content { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: repeat(4, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-number { font-size: 28px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card { padding: 25px 15px; }
    .adv-grid { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 24px; }
}

/* ===== NEWS MODAL ===== */
.news-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.news-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.news-modal-content { position: relative; background: var(--white); border-radius: var(--radius); max-width: 720px; width: 90%; max-height: 80vh; overflow-y: auto; padding: 40px; box-shadow: var(--shadow-hover); animation: modalIn 0.3s ease; }
.news-modal-close { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; border: none; background: var(--bg-light); border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--text); transition: var(--transition); }
.news-modal-close:hover { background: var(--accent); color: var(--white); }
.news-modal-date { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--white); border-radius: 8px; padding: 8px 16px; margin-bottom: 20px; font-weight: 600; font-size: 14px; }
.news-modal-content h3 { font-size: 22px; color: var(--primary); margin-bottom: 20px; line-height: 1.4; }
.news-modal-body { font-size: 15px; color: var(--text-light); line-height: 1.8; }
.news-modal-body p { margin-bottom: 15px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== FACTORY SUB-LINKS ===== */
.factory-subpages { text-align: center; margin-top: 20px; }
