/* 佑烁官网样式 - 青绿色主题 */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
    --primary: #14b8a6;
    --secondary: #0d9488;
    --accent: #f59e0b;
    --font: "Microsoft YaHei","PingFang SC",sans-serif;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg-gray: #f5f7fa;
    --border: #e5e7eb;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --shadow-hover: 0 8px 24px rgba(20,184,166,.15);
}
body { font-family: var(--font); color: var(--text); line-height: 1.7; background:#fff; }
a { text-decoration:none; color:inherit; transition:color .2s; }
img { max-width:100%; display:block; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* 按钮 */
.btn-primary, .btn-outline, .btn-outline-light {
    display:inline-block; padding:11px 32px; border-radius:6px; font-size:15px; cursor:pointer; transition:all .3s; border:2px solid transparent;
}
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background:var(--secondary); transform:translateY(-2px); box-shadow:0 4px 16px rgba(20,184,166,.3); }
.btn-outline { border-color:var(--primary); color:var(--primary); background:transparent; }
.btn-outline:hover { background:var(--primary); color:#fff; }

/* Header */
.header { background:#fff; box-shadow:0 1px 6px rgba(0,0,0,.06); position:sticky; top:0; z-index:100; transition:background .3s, box-shadow .3s, backdrop-filter .3s; }
.header.scrolled { background:rgba(255,255,255,.82); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); box-shadow:0 4px 20px rgba(0,0,0,.08); }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:70px; transition:height .3s ease; }
.header.scrolled .header-inner { height:56px; }
.header.scrolled .logo img { height:36px; }
.header.scrolled .logo-text { font-size:21px; }
.header.scrolled .nav a { font-size:15px; padding:7px 18px; }
.logo { opacity:0; transform:translateX(-40px); transition:opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.logo.show { opacity:1; transform:translateX(0); }
.logo img { height:44px; transition:height .3s ease; }
.logo-text { font-size:24px; font-weight:300; color:var(--text); transition:font-size .3s ease; }
.logo-text b { color:var(--primary); font-weight:700; }
.nav { display:flex; gap:4px; }
.nav a { padding:8px 20px; font-size:16px; color:var(--text); border-radius:6px; position:relative; transition:font-size .3s ease, padding .3s ease, color .25s, background .25s; opacity:0; transform:translateY(-24px); }
.nav a.show { opacity:1; transform:translateY(0); }
.nav a { transition:opacity .55s ease, transform .55s cubic-bezier(.22,1,.36,1), font-size .3s ease, padding .3s ease, color .25s, background .25s; }
.nav a:hover, .nav a.active { color:var(--primary); background:rgba(20,184,166,.06); }
.nav a.active::after { content:''; position:absolute; bottom:-2px; left:50%; transform:translateX(-50%); width:24px; height:3px; background:var(--primary); border-radius:2px; }
.header-right { display:flex; align-items:center; }
.header-phone { font-size:15px; color:var(--primary); font-weight:600; }
.menu-toggle { display:none; background:none; border:none; font-size:24px; cursor:pointer; color:var(--primary); }

/* 轮播图 - 3D 翻转入场 + 光带扫过 + 视差内容 */
.banner { position:relative; width:100%; aspect-ratio:1920/1100; height:auto; max-height:1100px; overflow:hidden; perspective:1800px; background:#0a0a14; }
.banner-slides { position:relative; width:100%; height:100%; transform-style:preserve-3d; }
.banner-slide {
    position:absolute; inset:0;
    background-size:cover; background-position:center center;
    opacity:0;
    transform: scale(1.08);
    transition: opacity 1s ease, transform 1.5s ease;
    display:flex; align-items:center;
    backface-visibility:hidden;
    will-change: transform, opacity;
}
.banner-slide.active {
    opacity:1;
    transform: scale(1);
    animation: bannerFlipIn 1.35s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes bannerFlipIn {
    0%   { opacity:0; transform: perspective(1800px) translateX(85%) rotateY(58deg) scale(0.82); }
    55%  { opacity:1; }
    100% { opacity:1; transform: perspective(1800px) translateX(0) rotateY(0deg) scale(1); }
}
.banner-slide::after {
    content:'';
    position:absolute; inset:0;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.28) 50%, transparent 65%);
    transform: translateX(-120%);
    pointer-events:none;
    z-index:1;
}
.banner-slide.active::after {
    animation: glareSweep 1.5s ease-out 0.15s both;
}
@keyframes glareSweep {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}
.banner-content { position:relative; z-index:2; color:#fff; max-width:580px; }
.banner-title, .banner-subtitle { opacity:0; }
.banner-slide.active .banner-title {
    animation: contentFromRight 0.9s cubic-bezier(0.16,1,0.3,1) 0.45s both;
}
.banner-slide.active .banner-subtitle {
    animation: contentFromRight 0.9s cubic-bezier(0.16,1,0.3,1) 0.65s both;
}
@keyframes contentFromRight {
    0%   { opacity:0; transform: translateX(64px); }
    100% { opacity:1; transform: translateX(0); }
}
.banner-title { font-size:38px; font-weight:700; margin-bottom:14px; }
.banner-subtitle { font-size:17px; margin-bottom:26px; opacity:.95; }
.banner-dots { position:absolute; bottom:24px; left:50%; transform:translateX(-50%); display:flex; gap:10px; z-index:3; }
.banner-dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.5); cursor:pointer; transition:all .3s; }
.banner-dot.active { background:var(--accent); width:30px; border-radius:5px; }
@media (prefers-reduced-motion: reduce) {
    .banner-slide { transition:opacity .4s ease; transform:none; }
    .banner-slide.active { animation:none; }
    .banner-slide::after { display:none; }
    .banner-title, .banner-subtitle { opacity:1; }
    .banner-slide.active .banner-title,
    .banner-slide.active .banner-subtitle { animation:none; }
}

/* 通用区块 */
.section { padding:72px 0; }
.section-gray { background:var(--bg-gray); }
.section-head { text-align:center; margin-bottom:36px; }
.section-title { font-size:28px; font-weight:700; color:var(--text); }
.section-title-line { width:48px; height:3px; background:var(--accent); margin:12px auto 0; border-radius:2px; }
.section-more { text-align:center; margin-top:32px; }

/* Tab 产品推荐 */
.tab-bar { display:flex; justify-content:center; gap:12px; margin-bottom:32px; }
.tab-btn { padding:9px 32px; border:1px solid var(--border); border-radius:50px; font-size:15px; cursor:pointer; transition:all .3s; background:#fff; color:var(--text-light); }
.tab-btn.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* 产品网格 */
.product-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.product-grid-6 { grid-template-columns:repeat(4,1fr); }
.product-card { background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); transition:all .3s; }
.product-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-hover); }
.product-img { height:200px; overflow:hidden; background:var(--bg-gray); }
.product-img img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.product-card:hover .product-img img { transform:scale(1.08); }
.product-name { padding:14px 16px; font-size:15px; font-weight:500; text-align:center; color:var(--text); }
.product-card:hover .product-name { color:var(--primary); }

/* 公司简介 左文右图 */
.about-layout { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.about-text { padding:20px 0; }
.about-title { font-size:28px; font-weight:700; color:var(--text); }
.about-title-line { width:48px; height:3px; background:var(--accent); margin:12px 0 20px; border-radius:2px; }
.about-intro { font-size:15px; color:var(--text-light); line-height:2; margin-bottom:28px; text-indent:2em; }
.about-image img { width:100%; border-radius:var(--radius); box-shadow:var(--shadow); }

/* 统计数据 */
.stats { display:flex; gap:32px; margin-bottom:28px; }
.stat-item { text-align:center; }
.stat-num { display:block; font-size:32px; font-weight:700; color:var(--primary); }
.stat-label { display:block; font-size:13px; color:var(--text-light); margin-top:4px; }

/* 新闻列表 */
.news-list { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.news-item { display:flex; gap:18px; padding:20px; background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); transition:all .3s; }
.news-item:hover { transform:translateY(-4px); box-shadow:var(--shadow-hover); }
.news-cover { width:160px; height:110px; border-radius:8px; overflow:hidden; flex-shrink:0; }
.news-cover img { width:100%; height:100%; object-fit:cover; }
.news-body { flex:1; display:flex; flex-direction:column; }
.news-cat { display:inline-block; font-size:12px; color:var(--primary); border:1px solid var(--primary); padding:1px 8px; border-radius:10px; margin-bottom:6px; width:fit-content; }
.news-title { font-size:16px; font-weight:600; margin-bottom:6px; color:var(--text); line-height:1.5; }
.news-item:hover .news-title { color:var(--primary); }
.news-summary { font-size:13px; color:var(--text-light); line-height:1.6; flex:1; }
.news-date { font-size:12px; color:var(--text-light); margin-top:8px; }

/* 页面 banner */
.page-banner { padding:52px 0; color:#fff; text-align:center; background:linear-gradient(135deg,var(--secondary),var(--primary)); }
.page-banner h1 { font-size:32px; margin-bottom:8px; }
.page-banner p { font-size:15px; opacity:.9; }

/* 分类筛选 */
.filter-bar { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:32px; justify-content:center; }
.filter-bar a { padding:8px 24px; border-radius:50px; font-size:14px; color:var(--text-light); background:#fff; border:1px solid var(--border); }
.filter-bar a.active, .filter-bar a:hover { background:var(--primary); color:#fff; border-color:var(--primary); }

/* 空状态 */
.empty { text-align:center; padding:60px 0; color:var(--text-light); }

/* 分页 */
.pagination { display:flex; gap:8px; justify-content:center; margin-top:40px; }
.pagination a { padding:8px 14px; border:1px solid var(--border); border-radius:6px; font-size:14px; color:var(--text); background:#fff; }
.pagination a:hover, .pagination a.active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* 产品详情 */
.detail-layout { display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-bottom:48px; }
.detail-img { border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.detail-img img { width:100%; height:380px; object-fit:cover; }
.detail-gallery { position:relative; background:#f0f0f0; }
.detail-gallery-slides { position:relative; width:100%; }
.detail-gallery-slide { position:absolute; top:0; left:0; width:100%; opacity:0; transition:opacity .5s; }
.detail-gallery-slide.active { position:relative; opacity:1; }
.detail-gallery .detail-gallery-slide img { width:100%; height:auto; object-fit:contain; display:block; }
.detail-gallery-dots { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:3; }
.detail-gallery-dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.5); cursor:pointer; transition:all .3s; }
.detail-gallery-dot.active { background:var(--accent); width:24px; border-radius:4px; }
.detail-gallery-arrow { position:absolute; top:50%; transform:translateY(-50%); width:36px; height:36px; border-radius:50%; background:rgba(0,0,0,.3); color:#fff; border:none; font-size:24px; line-height:1; cursor:pointer; z-index:3; display:flex; align-items:center; justify-content:center; }
.detail-gallery-arrow:hover { background:rgba(0,0,0,.5); }
.detail-gallery-arrow.prev { left:12px; }
.detail-gallery-arrow.next { right:12px; }
.detail-info { display:flex; flex-direction:column; justify-content:center; }
.detail-title { font-size:26px; margin:10px 0; }
.detail-summary { font-size:15px; color:var(--text-light); line-height:1.8; margin-bottom:20px; }
.detail-meta { border-top:1px solid var(--border); padding-top:16px; margin-bottom:24px; color:var(--text-light); font-size:14px; }
.detail-meta p { margin-bottom:6px; }
.detail-contact { display:flex; gap:14px; }
.detail-content { margin-bottom:48px; }
.detail-content-title { font-size:20px; color:var(--secondary); border-left:4px solid var(--primary); padding-left:14px; margin-bottom:24px; }

/* 富文本 */
.rich-content { font-size:16px; line-height:2; color:var(--text); }
.rich-content p { margin-bottom:16px; text-indent:2em; }
.rich-content h2, .rich-content h3 { margin:24px 0 12px; color:var(--secondary); }
.rich-content ul, .rich-content ol { margin:12px 0 16px 2em; }

/* 文章 */
.content-narrow { max-width:860px; }
.article-title { font-size:26px; text-align:center; margin-bottom:16px; }
.article-meta { text-align:center; color:var(--text-light); font-size:14px; margin-bottom:24px; padding-bottom:20px; border-bottom:1px solid var(--border); }
.article-meta span { margin:0 12px; }
.article-nav { display:flex; justify-content:space-between; gap:20px; margin-top:40px; padding-top:28px; border-top:1px solid var(--border); }
.article-nav-item { font-size:14px; color:var(--text-light); max-width:48%; }
.article-nav-item:hover { color:var(--primary); }
.article-nav-next { text-align:right; }

/* 联系我们 */
.contact-layout { display:grid; grid-template-columns:1fr 1.2fr; gap:48px; }
.contact-item { display:flex; gap:16px; margin-bottom:24px; }
.contact-icon { width:48px; height:48px; border-radius:50%; background:var(--bg-gray); display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.contact-item h4 { font-size:14px; color:var(--text-light); margin-bottom:4px; }
.contact-item p { font-size:17px; color:var(--text); font-weight:600; }
.contact-form { background:var(--bg-gray); padding:32px; border-radius:var(--radius); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { margin-bottom:18px; }
.form-group label { display:block; font-size:14px; margin-bottom:6px; }
.form-group .req { color:#e74c3c; }
.form-group input, .form-group textarea { width:100%; padding:10px 14px; border:1px solid var(--border); border-radius:6px; font-size:14px; font-family:inherit; }
.form-group input:focus, .form-group textarea:focus { outline:none; border-color:var(--primary); }
.alert-success, .alert-error { padding:12px 16px; border-radius:6px; margin-bottom:16px; font-size:14px; }
.alert-success { background:#f6ffed; border:1px solid #b7eb8f; color:#389e0d; }
.alert-error { background:#fff4f4; border:1px solid #ffccc7; color:#cf1322; }

/* 底部 */
.footer { background:#1f2937; color:rgba(255,255,255,.7); padding-top:48px; }
.footer-inner { display:grid; grid-template-columns:2fr 1fr 1fr; gap:36px; padding-bottom:32px; }
.footer-title { color:#fff; font-size:16px; margin-bottom:16px; }
.footer-desc { font-size:14px; line-height:1.8; margin-bottom:12px; }
.footer-contact { font-size:14px; margin-bottom:6px; }
.footer-col p { font-size:14px; margin-bottom:8px; }
.footer-col a:hover { color:var(--primary); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); padding:16px 0; font-size:13px; }
.footer-bottom .container { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }

/* 响应式 */
@media (max-width:992px) {
    .product-grid { grid-template-columns:repeat(3,1fr); }
    .product-grid-6 { grid-template-columns:repeat(2,1fr); }
    .news-list { grid-template-columns:1fr; }
    .about-layout { grid-template-columns:1fr; }
    .contact-layout { grid-template-columns:1fr; }
}
@media (max-width:768px) {
    .nav { display:none; position:absolute; top:70px; left:0; right:0; background:#fff; flex-direction:column; padding:12px; box-shadow:var(--shadow); }
    .nav.open { display:flex; }
    .nav a::after { display:none; }
    .menu-toggle { display:block; }
    .header-phone { display:none; }
    .banner { height:250px; aspect-ratio:auto; }
    .banner-slide { background-size:cover; }
    .banner-title { font-size:26px; }
    .section { padding:48px 0; }
    .section-title { font-size:24px; }
    .product-grid { grid-template-columns:repeat(2,1fr); }
    .stats { flex-wrap:wrap; gap:20px; }
    .detail-layout { grid-template-columns:1fr; }
    .form-row { grid-template-columns:1fr; }
    .footer-inner { grid-template-columns:1fr; }
    .footer-desc { display:none; }
    .footer-col-links { display:flex; flex-wrap:wrap; align-items:center; column-gap:18px; row-gap:6px; }
    .footer-col-links .footer-title { width:100%; margin-bottom:8px; }
    .footer-col-links p { margin-bottom:0; }
    .news-item { flex-direction:column; }
    .news-cover { width:100%; height:160px; }
}
@media (max-width:480px) {
    .product-grid { grid-template-columns:1fr; }
    .product-grid-6 { grid-template-columns:1fr; }
}
