* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #0066CC;
  --cyan: #00B8D4;
  --green: #00C853;
  --dark: #1A2332;
  --gray: #607D8B;
  --light: #ECEFF1;
  --gradient: linear-gradient(135deg, #0066CC 0%, #00B8D4 100%);
}
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* 导航 - 透明叠加在Banner上 */
header { position: fixed; top: 0; width: 100%; z-index: 100; background: transparent; transition: background 0.3s; }
header.scrolled { background: rgba(0, 51, 102, 0.85); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo img { max-height: 42px; }
.nav-menu { display: flex; gap: 36px; list-style: none; }
.nav-menu a { font-size: 15px; color: #fff; transition: opacity .2s; font-weight: 500; }
.nav-menu a:hover, .nav-menu a.active { opacity: 0.8; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.search-box { display: flex; align-items: center; background: rgba(255,255,255,0.15); border-radius: 20px; padding: 6px 14px; }
.search-box input { background: transparent; border: none; outline: none; color: #fff; font-size: 13px; width: 140px; }
.search-box input::placeholder { color: rgba(255,255,255,0.7); }
.search-box button { background: none; border: none; color: #fff; cursor: pointer; display: flex; }

/* Hero */
.hero { height: 100vh; position: relative; overflow: hidden; background: var(--gradient); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; display: flex; align-items: center; background-size: cover !important; background-position: center !important; animation: kenburns 15s ease-in-out infinite alternate; }
.hero-slide.active { opacity: 1; }
@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.hero-content h1 { font-size: 48px; font-weight: 700; line-height: 1.2; margin: 12px 0 16px; }
.hero-content .en { font-size: 18px; opacity: 0.9; }
.hero-content p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }
.btn { display: inline-block; padding: 14px 36px; background: #fff; color: var(--blue); border-radius: 30px; font-weight: 600; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.hero-dots span.active { background: #fff; }

/* 通用板块 */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title .en { font-size: 14px; color: var(--gray); letter-spacing: 3px; text-transform: uppercase; }
.section-title h2 { font-size: 36px; font-weight: 700; margin-top: 8px; }
.section-title h2 span { color: var(--blue); }

/* 产品 */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.product-card { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-top: 4px solid var(--blue); }
.product-card.cyan { border-top-color: var(--cyan); }
.product-card h3 { font-size: 24px; margin-bottom: 8px; }
.product-card .en { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.product-card p { color: var(--gray); margin-bottom: 24px; }
.product-card ul { list-style: none; }
.product-card li { padding: 6px 0; padding-left: 24px; position: relative; }
.product-card li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* 数据 */
.stats { background: var(--gradient); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: 48px; font-weight: 700; }
.stat-label { font-size: 15px; opacity: 0.9; margin-top: 8px; }

/* 新闻 */
.news-list { max-width: 900px; margin: 0 auto; }
.news-item { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--light); }
.news-item h4 { font-size: 16px; font-weight: 500; }
.news-item h4:hover { color: var(--blue); }
.news-item .date { color: var(--gray); font-size: 14px; }

/* 关于/联系 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h3 { font-size: 28px; margin-bottom: 20px; }
.about-text p { color: var(--gray); margin-bottom: 16px; }
.contact-info { max-width: 600px; margin: 0 auto; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-item .icon { width: 44px; height: 44px; background: var(--gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.contact-item h5 { font-size: 15px; color: var(--gray); font-weight: 400; }
.contact-item p { font-size: 18px; font-weight: 600; }

/* 二级页面Banner */
.page-banner { height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; position: relative; background-size: cover; background-position: center; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.1)"/></svg>'); opacity: 0.5; }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.page-banner p { font-size: 16px; opacity: 0.9; }

/* 新闻详情 */
.article { max-width: 800px; margin: 100px auto 0; padding: 40px; }
.article h1 { font-size: 32px; margin-bottom: 16px; }
.article .meta { color: var(--gray); font-size: 14px; margin-bottom: 32px; }
.article .content { line-height: 2; color: #333; }

/* Footer */
footer { background: var(--dark); color: #fff; padding: 60px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h5 { font-size: 16px; margin-bottom: 16px; }
.footer-grid p, .footer-grid a { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }

/* 后台样式 */
.admin-body { background: #f0f2f5; }
.admin-login { max-width: 400px; margin: 100px auto; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.admin-login h1 { font-size: 22px; text-align: center; margin-bottom: 24px; }
.admin-login input { width: 100%; padding: 12px; margin-bottom: 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
.admin-login button { width: 100%; padding: 12px; background: var(--gradient); color: #fff; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; }
.admin-wrap { display: flex; min-height: 100vh; margin-top: 0; }
.admin-sidebar { width: 220px; background: var(--dark); color: #fff; padding: 20px 0; }
.admin-sidebar h2 { padding: 0 20px 20px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 10px; }
.admin-sidebar a { display: block; padding: 12px 20px; color: rgba(255,255,255,0.7); font-size: 14px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { flex: 1; padding: 30px; }
.admin-main h1 { font-size: 24px; margin-bottom: 24px; }
.admin-table { width: 100%; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { background: #f8fafc; font-weight: 600; }
.btn-sm { padding: 6px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; border: none; }
.btn-edit { background: var(--blue); color: #fff; }
.btn-del { background: #f44336; color: #fff; }
.btn-add { background: var(--green); color: #fff; padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; margin-bottom: 20px; }
.admin-form { background: #fff; padding: 30px; border-radius: 8px; max-width: 600px; }
.admin-form label { display: block; margin-bottom: 6px; font-weight: 500; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; padding: 10px; margin-bottom: 16px; border: 1px solid #ddd; border-radius: 6px; }
.stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { padding: 24px; border-radius: 12px; color: #fff; }
.stat-card .num { font-size: 36px; font-weight: 700; }
.stat-card .label { opacity: 0.9; margin-top: 4px; }

/* 响应式 */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero { height: 420px; }
  .hero-content h1 { font-size: 30px; }
  .products, .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { width: 60px; }
  .admin-sidebar h2, .admin-sidebar a span { display: none; }
}

/* ===== 科幻动画效果 ===== */

/* 滚动淡入 */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* 卡片hover发光上浮 */
.product-card, section[style*="background:#fff"] > div { transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover, section[style*="background:#fff"] > div:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,102,204,0.15) !important; }

/* 首屏粒子光点 */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 90% 50%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.4), transparent);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-20px); opacity: 1; }
}

/* 数字滚动 */
.stat-num { font-variant-numeric: tabular-nums; animation: bounce 3s ease-in-out infinite; display: inline-block; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 导航毛玻璃强化 */
header.scrolled { backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); }

/* 按钮发光 */
.btn { position: relative; overflow: hidden; }
.btn:hover { box-shadow: 0 8px 25px rgba(255,255,255,0.3); }
