/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #005b8f;
  --primary-dark: #003d5e;
  --primary-light: #1a8cc4;
  --accent: #f5a623;
  --accent-dark: #d48b1a;
  --text: #222;
  --text-light: #666;
  --bg: #f4f7fa;
  --white: #fff;
  --border: #dde3ea;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-w: 1200px;
}
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-title { text-align: center; font-size: 2rem; color: var(--primary); margin-bottom: 12px; font-weight: 700; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 45px; font-size: 1rem; }

/* ===== HEADER / NAV ===== */
.header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; height: 72px; }
.logo-area { display: flex; align-items: center; gap: 0; }
.logo-area img { height: 52px; width: auto; display: block; }
/* 保留文字Logo样式（兼容旧组件） */
.logo-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 30px; height: 30px; fill: var(--white); }
.logo-text h1 { font-size: 1.15rem; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }
.logo-text span { font-size: 0.72rem; color: var(--text-light); }

.nav { display: flex; align-items: center; gap: 0; }
.nav > li { position: relative; }
.nav > li > a { display: flex; align-items: center; padding: 24px 18px; font-size: 0.95rem; color: var(--text); font-weight: 500; transition: color 0.25s; gap: 4px; }
.nav > li > a:hover, .nav > li > a.active { color: var(--primary); }
.nav .arrow { font-size: 0.7rem; transition: transform 0.2s; }
.nav > li:hover .arrow { transform: rotate(180deg); }

.nav-dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); border-radius: var(--radius); overflow: hidden; z-index: 100; }
.nav > li:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 11px 20px; font-size: 0.9rem; color: var(--text); border-bottom: 1px solid var(--border); transition: background 0.2s; }
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: #f0f6fa; color: var(--primary); }

.lang-toggle { font-size: 0.8rem; color: var(--text-light); cursor: pointer; padding: 6px 12px; border: 1px solid var(--border); border-radius: 20px; transition: all 0.2s; }
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero { position: relative; height: 520px; overflow: hidden; }
.hero-slider { height: 100%; position: relative; }
.hero-slide { position: absolute; inset: 0; display: none; }
.hero-slide.active { display: flex; }
.hero-slide-bg { position: absolute; inset: 0; }
.hero-slide:nth-child(1) .hero-slide-bg { background: linear-gradient(135deg, #003d5e 0%, #0077b6 50%, #0096c7 100%); }
.hero-slide:nth-child(2) .hero-slide-bg { background: linear-gradient(135deg, #001f3f 0%, #003a5c 50%, #006d77 100%); }
.hero-slide:nth-child(3) .hero-slide-bg { background: linear-gradient(135deg, #00203f 0%, #004b6e 50%, #00708b 100%); }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.hero-content { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; justify-content: center; height: 100%; color: var(--white); }
.hero-content h2 { font-size: 2.6rem; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.hero-content p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.92; max-width: 600px; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.hero-dot.active { background: var(--accent); transform: scale(1.3); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 30px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s; border: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(245,166,35,0.4); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }

/* ===== ABOUT INTRO ===== */
.about-intro { background: var(--white); }
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-intro-text .tag { display: inline-block; background: #e8f4fb; color: var(--primary); font-size: 0.8rem; font-weight: 600; padding: 4px 14px; border-radius: 20px; margin-bottom: 14px; }
.about-intro-text h2 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 18px; line-height: 1.4; }
.about-intro-text p { color: var(--text-light); margin-bottom: 14px; font-size: 0.95rem; }
.cert-badges { display: flex; gap: 14px; margin-top: 24px; }
.cert-badge { background: #f8f9fa; border: 1px solid var(--border); border-radius: 8px; padding: 10px 18px; font-size: 0.82rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.about-intro-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(135deg, #003d5e, #0077b6); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: white; font-size: 4rem; }
.about-intro-img-text { font-size: 1rem; text-align: center; line-height: 1.6; opacity: 0.9; padding: 30px; }

/* ===== STATS ===== */
.stats-bar { background: var(--primary); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; text-align: center; color: var(--white); }
.stat-item .num { font-size: 2.4rem; font-weight: 700; color: var(--accent); }
.stat-item .label { font-size: 0.9rem; opacity: 0.85; margin-top: 4px; }

/* ===== PRODUCTS GRID ===== */
.products-section { background: var(--white); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--border); transition: all 0.3s; cursor: pointer; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,91,143,0.15); border-color: var(--primary-light); }
.product-card-img { height: 180px; background: linear-gradient(135deg, #e8f4fb, #d0e8f5); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 1rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 8px; }
.product-card-body p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.product-card-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.product-card-footer .count { font-size: 0.8rem; color: var(--text-light); }
.product-card-footer .link { font-size: 0.82rem; color: var(--primary); font-weight: 600; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 36px 28px; text-align: center; border: 1px solid var(--border); transition: all 0.3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: var(--primary-light); }
.service-icon { width: 70px; height: 70px; background: linear-gradient(135deg, #e8f4fb, #cce6f5); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; }
.service-card h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 10px; }
.service-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all 0.3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.news-img { height: 160px; background: linear-gradient(135deg, #003d5e, #0077b6); display: flex; align-items: center; justify-content: center; color: white; font-size: 2.5rem; }
.news-body { padding: 20px; }
.news-date { font-size: 0.78rem; color: var(--text-light); margin-bottom: 8px; }
.news-body h3 { font-size: 0.98rem; font-weight: 600; color: var(--text); margin-bottom: 10px; line-height: 1.5; }
.news-body p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 70px 0; text-align: center; color: var(--white); }
.cta-section h2 { font-size: 2rem; margin-bottom: 14px; }
.cta-section p { font-size: 1rem; opacity: 0.88; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
.footer { background: #0d2538; color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer ul li a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; margin-bottom: 12px; }
.footer-contact .fc-icon { flex-shrink: 0; margin-top: 2px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ===== PAGE BANNER ===== */
.page-banner { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 60px 0; text-align: center; color: var(--white); }
.page-banner h2 { font-size: 2rem; margin-bottom: 8px; }
.page-banner p { font-size: 0.95rem; opacity: 0.85; }

/* ===== PRODUCT LIST PAGE ===== */
.product-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-btn { padding: 8px 20px; border-radius: 20px; border: 1px solid var(--border); background: var(--white); font-size: 0.88rem; cursor: pointer; transition: all 0.2s; color: var(--text); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.product-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.92rem; font-family: inherit; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { height: 120px; resize: vertical; }
.contact-info-card { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact-info-item .ci-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #e8f4fb, #cce6f5); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: 0.9rem; color: var(--primary-dark); margin-bottom: 4px; }
.contact-info-item p { font-size: 0.88rem; color: var(--text-light); }

/* ===== ABOUT PAGE ===== */
.about-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-feature { background: var(--white); border-radius: var(--radius); padding: 24px; text-align: center; border: 1px solid var(--border); }
.about-feature .af-icon { font-size: 2rem; margin-bottom: 10px; }
.about-feature h4 { font-size: 0.95rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 6px; }
.about-feature p { font-size: 0.82rem; color: var(--text-light); }

/* ===== NEWS PAGE ===== */
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-list-item { display: grid; grid-template-columns: 200px 1fr; gap: 24px; background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.news-list-item .nl-img { height: 140px; background: linear-gradient(135deg, #003d5e, #0077b6); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: white; font-size: 2.5rem; }

/* ===== ADMIN ===== */
.admin-header { background: var(--primary-dark); color: var(--white); padding: 20px 0; }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.admin-body { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.admin-panel { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.admin-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 30px; }
.admin-tab { padding: 12px 24px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; color: var(--text-light); transition: all 0.2s; }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th { background: #f8f9fa; padding: 12px 14px; text-align: left; font-weight: 600; color: var(--text); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover { background: #f8f9fa; }
.tag-in-stock { background: #e6f9ee; color: #1a7a3a; padding: 3px 10px; border-radius: 12px; font-size: 0.78rem; font-weight: 600; }
.tag-low { background: #fff4e6; color: #b35900; padding: 3px 10px; border-radius: 12px; font-size: 0.78rem; font-weight: 600; }
.btn-danger { background: #f44336; color: white; border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.82rem; }
.btn-edit { background: var(--primary); color: white; border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.82rem; }
.btn-add { background: #4caf50; color: white; border: none; padding: 10px 24px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; font-weight: 600; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); padding: 36px; width: 560px; max-width: 95%; max-height: 90vh; overflow-y: auto; }
.modal h3 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 24px; }
.modal-close { float: right; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-menu-btn { display: block; }
  .about-intro-grid, .about-content-grid { grid-template-columns: 1fr; }
  .products-grid, .services-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-list-grid { grid-template-columns: 1fr; }
  .news-list-item { grid-template-columns: 1fr; }
  .hero-content h2 { font-size: 1.8rem; }
  .admin-table { font-size: 0.78rem; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
}
@media (max-width: 480px) {
  .products-grid, .services-grid, .news-grid { grid-template-columns: 1fr; }
  .about-feature-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== MOBILE MENU ===== */
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }
.mobile-nav { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: var(--white); z-index: 1001; overflow-y: auto; transition: right 0.3s; }
.mobile-nav.open { right: 0; }
.mobile-nav-header { padding: 20px; background: var(--primary); color: white; display: flex; justify-content: space-between; align-items: center; }
.mobile-nav a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--text); }
.mobile-nav a:hover { background: #f0f6fa; color: var(--primary); }

/* ===== PAGE SECTIONS ===== */
.page-section { padding: 50px 0; }
.page-section:nth-child(even) { background: var(--white); }

/* ===== SCROLL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
