:root {
  --primary: #0ea5e9;
  --primary-light: #7dd3fc;
  --primary-dark: #0284c7;
  --primary-bg: #f0f9ff;
  --accent: #38bdf8;
  --text: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08);
  --radius: 8px;
  --max-w: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif; color: var(--text); line-height: 1.6; background: var(--white); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); background: #3e3d43; box-shadow: var(--shadow); z-index: 1000; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: var(--white); }
.logo img { height: 40px; }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 0.95rem; color: rgba(255,255,255,.8); font-weight: 500; position: relative; padding: 4px 0; transition: color .2s; }
.nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width .2s; }
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.lang-switch { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; }
.lang-switch button { background: none; border: 1px solid rgba(255,255,255,.3); padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; color: rgba(255,255,255,.7); transition: all .2s; }
.lang-switch button.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: rgba(255,255,255,.8); transition: all .3s; border-radius: 2px; }

/* Hero */
.hero { padding: calc(var(--header-h) + 60px) 0 80px; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; position: relative; }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 700px; margin: 0 auto 32px; position: relative; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all .2s; border: none; }
.btn-primary { background: var(--white); color: var(--primary); }
.btn-primary:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* Sections */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 2rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; }
.section-title p { color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-alt { background: var(--gray-50); }

/* About Intro */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-intro h3 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 16px; }
.about-intro p { color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-card { text-align: center; padding: 32px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card .num { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat-card .label { color: var(--text-light); margin-top: 8px; font-size: 0.9rem; }

/* Product Carousel */
.product-carousel { position: relative; max-width: calc(var(--max-w) - 80px); margin: 0 auto; }
.carousel-wrapper { position: relative; overflow: hidden; border-radius: 12px; min-height: 420px; background: var(--gray-100); }
.carousel-track { display: flex; transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.carousel-slide { min-width: 100%; position: relative; height: 460px; overflow: hidden; }
.carousel-slide .slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 44px 40px; background: linear-gradient(transparent 20%, rgba(0,0,0,.7)); color: var(--white); z-index: 1; }
.carousel-overlay .tag { display: inline-block; padding: 4px 16px; border-radius: 20px; font-size: .82rem; font-weight: 600; background: var(--primary); color: var(--white); margin-bottom: 12px; }
.carousel-overlay h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.carousel-overlay p { font-size: 1rem; opacity: .92; max-width: 580px; line-height: 1.6; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); color: var(--primary-dark); font-size: 1.6rem; cursor: pointer; transition: all .2s; box-shadow: 0 2px 8px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; z-index: 3; line-height: 1; }
.carousel-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.1); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.carousel-indicators { position: absolute; bottom: 16px; right: 32px; display: flex; gap: 8px; z-index: 2; }
.carousel-indicators .dot { width: 28px; height: 3px; border-radius: 2px; border: none; background: rgba(255,255,255,.4); cursor: pointer; transition: all .35s; padding: 0; }
.carousel-indicators .dot.active { background: var(--white); width: 36px; }
@media (max-width: 768px) {
  .carousel-slide { height: 340px; }
  .carousel-overlay { padding: 28px 20px; }
  .carousel-overlay h3 { font-size: 1.3rem; }
  .carousel-overlay p { font-size: .88rem; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 1.2rem; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  .carousel-indicators { right: 16px; }
  .product-carousel { max-width: 100%; }
}

/* Timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; padding: 0 0 32px 24px; }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid var(--primary-bg); }
.timeline-item .year { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.timeline-item .desc { color: var(--text-light); margin-top: 4px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.team-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--gray-200); }
.team-card .avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--primary-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 2rem; color: var(--primary); font-weight: 700; }
.team-card h4 { font-size: 1.05rem; color: var(--primary-dark); }
.team-card .role { color: var(--primary); font-size: 0.85rem; font-weight: 600; margin: 4px 0 8px; }
.team-card .bio { color: var(--text-light); font-size: 0.85rem; line-height: 1.5; }

/* Partners */
.partners-grid { display: flex; gap: 32px; justify-content: center; align-items: center; flex-wrap: wrap; }
.partner-item { padding: 24px 32px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); font-weight: 600; font-size: 1.1rem; color: var(--text); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-200); transition: all .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .card-body { padding: 24px; }
.news-card .date { font-size: 0.85rem; color: var(--text-light); margin-bottom: 8px; }
.news-card h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 8px; }
.news-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.news-card .read-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 16px; }
.contact-info p { color: var(--text-light); margin-bottom: 12px; display: flex; align-items: flex-start; gap: 12px; }
.contact-info .icon { color: var(--primary); font-size: 1.2rem; flex-shrink: 0; }
.contact-form { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text); font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 0.95rem; transition: border .2s; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn { background: var(--primary); color: var(--white); padding: 12px 32px; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.submit-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Footer */
.footer { background: #3e3d43; color: rgba(255,255,255,.75); padding: 36px 0 20px; font-size: .88rem; }
.footer .container { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand { font-size: 1rem; font-weight: 600; color: var(--white); }
.footer-info { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-info a, .footer-info span { color: rgba(255,255,255,.6); }
.footer-info a:hover { color: var(--white); }
.footer-qr { display: flex; gap: 16px; margin: 4px 0; }
.footer-qr .qr-placeholder { width: 72px; height: 72px; border: 1px dashed rgba(255,255,255,.25); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .7rem; color: rgba(255,255,255,.35); text-align: center; line-height: 1.2; cursor: pointer; transition: border .2s; }
.footer-qr .qr-placeholder:hover { border-color: rgba(255,255,255,.5); }
.footer-bottom { text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: #3e3d43; flex-direction: column; padding: 20px; gap: 16px; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .about-intro { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .section-title h2 { font-size: 1.5rem; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: calc(var(--header-h) + 40px) 0 60px; }
  .section { padding: 48px 0; }
}

/* Page Header */
.page-header { padding: calc(var(--header-h) + 40px) 0 40px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); text-align: center; }
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-header p { opacity: 0.85; }

/* Products Page */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 28px; }
.product-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: all .3s; border: 1px solid var(--gray-200); position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.product-card .card-img { width: 100%; height: 220px; object-fit: cover; display: block; background: var(--gray-100); }
.product-card .card-body { padding: 24px; }
.product-card .card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.product-card .color-bar { width: 4px; height: 28px; border-radius: 2px; flex-shrink: 0; }
.product-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.product-card .tag { display: inline-block; padding: 2px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600; background: var(--primary-bg); color: var(--primary); }
.product-card .card-desc { color: var(--text-light); font-size: .9rem; line-height: 1.6; margin-bottom: 14px; }
.product-card .feature-list { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card .feature-list li { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: .8rem; background: var(--gray-50); color: var(--text-light); border: 1px solid var(--gray-200); }
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card .card-img { height: 180px; }
}

/* Product Detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-specs { background: var(--gray-50); border-radius: var(--radius); padding: 24px; }
.product-specs table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.product-specs td { padding: 8px 12px; border-bottom: 1px solid var(--gray-200); }
.product-specs td:first-child { font-weight: 600; color: var(--text); width: 40%; }
.product-specs td:last-child { color: var(--text-light); }
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* Admin login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--gray-100); }
.login-box { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 400px; }
.login-box h1 { text-align: center; margin-bottom: 24px; color: var(--primary-dark); }
.login-box .form-group { margin-bottom: 20px; }
.login-box .submit-btn { width: 100%; }
