/* ========================================
   本益科技 - 主样式表
   设计风格：科技蓝 + 玻璃拟态
   ======================================== */

/* === CSS变量 === */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #7c3aed;
    --accent-light: #8b5cf6;
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-soft: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(124,58,237,0.1) 100%);

    --bg: #f0f4f8;
    --bg-card: rgba(255,255,255,0.72);
    --bg-card-hover: rgba(255,255,255,0.88);
    --bg-header: rgba(255,255,255,0.78);
    --bg-footer: #0f172a;

    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --text-white: #f1f5f9;

    --border: rgba(255,255,255,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

/* === 重置 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* === 容器 === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* === 导航栏 === */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; }
.logo img { height: 36px; width: auto; }
.logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav { display: flex; gap: 4px; }
.nav-link {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 0.95rem; font-weight: 500;
    color: var(--text-light);
    transition: all var(--transition);
    position: relative;
}
.nav-link:hover { color: var(--primary); background: rgba(37,99,235,0.06); }
.nav-link.active { color: var(--primary); background: rgba(37,99,235,0.1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius-full);
    background: var(--gradient); color: #fff;
    font-size: 0.875rem; font-weight: 500;
    transition: all var(--transition);
}
.header-phone:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.3); color: #fff; }
.header-phone svg { width: 16px; height: 16px; }

/* 移动端汉堡菜单 */
.nav-toggle { display: none; width: 28px; height: 20px; position: relative; }
.nav-toggle span {
    position: absolute; left: 0; width: 100%; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* === Hero 区域 === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 72px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(37,99,235,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(124,58,237,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(37,99,235,0.08) 0%, transparent 50%);
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: var(--radius-full);
    background: var(--gradient-soft);
    border: 1px solid rgba(37,99,235,0.2);
    font-size: 0.85rem; color: var(--primary); font-weight: 500;
    margin-bottom: 24px;
}
.hero-badge::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero h1 .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
    font-size: 1.125rem; color: var(--text-light);
    line-height: 1.8; margin-bottom: 36px;
    max-width: 600px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-decoration {
    position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
    width: 500px; height: 500px; z-index: 0; opacity: 0.15;
}
.hero-decoration::before {
    content: ''; position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--gradient);
    filter: blur(80px);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* 装饰球体 */
.deco-circle {
    position: absolute; border-radius: 50%;
    border: 2px solid rgba(37,99,235,0.15);
    animation: float 8s ease-in-out infinite;
}
.deco-circle:nth-child(1) { width: 300px; height: 300px; top: 10%; right: 5%; animation-delay: -2s; }
.deco-circle:nth-child(2) { width: 200px; height: 200px; bottom: 15%; right: 15%; animation-delay: -4s; border-color: rgba(124,58,237,0.12); }
.deco-circle:nth-child(3) { width: 100px; height: 100px; top: 30%; right: 25%; animation-delay: -1s; }

/* === 按钮 === */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius-full);
    font-size: 1rem; font-weight: 600;
    transition: all var(--transition);
    cursor: pointer; border: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.4); color: #fff; }
.btn-outline {
    background: transparent; color: var(--primary);
    border: 2px solid rgba(37,99,235,0.3);
}
.btn-outline:hover { background: rgba(37,99,235,0.06); border-color: var(--primary); color: var(--primary); }
.btn-white {
    background: #fff; color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* === 通用区块 === */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    padding: 6px 16px; border-radius: var(--radius-full);
    background: var(--gradient-soft);
    color: var(--primary); font-size: 0.85rem; font-weight: 600;
    margin-bottom: 16px; letter-spacing: 1px;
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800; margin-bottom: 16px;
}
.section-desc {
    font-size: 1.05rem; color: var(--text-light);
    max-width: 600px; margin: 0 auto; line-height: 1.8;
}

/* === 页面Banner（子页面） === */
.page-banner {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(37,99,235,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 60%, rgba(124,58,237,0.08) 0%, transparent 50%);
}
.page-banner h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; position: relative;
    margin-bottom: 12px;
}
.page-banner .breadcrumb {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 0.9rem; color: var(--text-light);
    position: relative;
}
.page-banner .breadcrumb a:hover { color: var(--primary); }
.page-banner .breadcrumb span { color: var(--primary); }

/* === 服务卡片 === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gradient-soft);
    color: var(--primary);
    margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-light); font-size: 0.95rem;
    line-height: 1.7;
}

/* === 优势区域 === */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.advantage-item {
    display: flex; gap: 16px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.advantage-item:hover { transform: translateX(4px); background: var(--bg-card-hover); }
.advantage-num {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff; font-weight: 700; font-size: 0.9rem;
}
.advantage-item h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.advantage-item p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* === 案例卡片 === */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}
.case-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card-img {
    width: 100%; height: 220px;
    overflow: hidden;
    background: var(--gradient-soft);
    position: relative;
}
.case-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.case-card:hover .case-card-img img { transform: scale(1.05); }
.case-card-body { padding: 24px; }
.case-card-tag {
    display: inline-block;
    padding: 4px 12px; border-radius: var(--radius-full);
    background: var(--gradient-soft);
    color: var(--primary); font-size: 0.8rem; font-weight: 500;
    margin-bottom: 10px;
}
.case-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.case-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.case-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600; font-size: 0.9rem;
    transition: gap var(--transition);
}
.case-card-link:hover { gap: 10px; }
.case-card-link svg { width: 16px; height: 16px; }

/* === 新闻卡片 === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}
.news-card {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 32px;
    transition: all var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card-date {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-lighter); font-size: 0.85rem;
    margin-bottom: 12px;
}
.news-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; line-height: 1.5; }
.news-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
.news-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600; font-size: 0.9rem;
}
.news-card-link:hover { gap: 10px; }
.news-card-link svg { width: 16px; height: 16px; }

/* === CTA 横幅 === */
.cta-section {
    padding: 80px 0;
}
.cta-box {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute; top: -50%; right: -20%; width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.cta-box::after {
    content: '';
    position: absolute; bottom: -30%; left: -10%; width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.cta-box h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-box p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 32px; position: relative; z-index: 1; }
.cta-box .btn { position: relative; z-index: 1; }

/* === 关于我们页面 === */
.about-content { max-width: 800px; margin: 0 auto; }
.about-block {
    margin-bottom: 48px;
    padding: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
}
.about-block h2 {
    font-size: 1.5rem; font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gradient-soft);
}
.about-block p {
    color: var(--text-light); line-height: 1.9;
    margin-bottom: 12px;
}
.about-goals { display: grid; gap: 12px; margin-top: 16px; }
.about-goals li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px; border-radius: var(--radius-sm);
    background: var(--gradient-soft);
}
.about-goals li svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.about-goals li span { font-size: 0.95rem; line-height: 1.6; }

/* === 联系我们页面 === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.contact-card {
    text-align: center;
    padding: 48px 32px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card-icon {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gradient-soft);
    color: var(--primary);
    margin: 0 auto 20px;
}
.contact-card-icon svg { width: 28px; height: 28px; }
.contact-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.contact-card p { color: var(--text-light); font-size: 0.95rem; }
.contact-card a { color: var(--primary); font-weight: 500; }

/* === 新闻详情 === */
.article-content {
    max-width: 800px; margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
}
.article-content h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; }
.article-meta { color: var(--text-lighter); font-size: 0.9rem; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.article-body h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 16px; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 12px; }
.article-body p { line-height: 1.9; margin-bottom: 16px; color: var(--text); }
.article-body ul { padding-left: 24px; margin-bottom: 16px; list-style: disc; }
.article-body ul li { line-height: 1.8; margin-bottom: 6px; }
.article-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600;
    margin-bottom: 24px; font-size: 0.95rem;
}
.article-back:hover { gap: 10px; }
.article-back svg { width: 18px; height: 18px; transform: rotate(180deg); }

/* === 页脚 === */
.footer {
    background: var(--bg-footer);
    color: var(--text-white);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.2rem;
    margin-bottom: 16px;
}
.footer-logo img { height: 32px; filter: brightness(0) invert(1); }
.footer-desc { color: var(--text-lighter); font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 {
    font-size: 1rem; font-weight: 700;
    margin-bottom: 20px;
    position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-lighter); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--primary-light); }
.footer-contact li span { color: var(--text-lighter); font-size: 0.9rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p { color: var(--text-lighter); font-size: 0.85rem; }

/* === 响应式 === */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-decoration { display: none; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 20px;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform var(--transition);
    }
    .nav.open { transform: translateX(0); }
    .nav-link { padding: 14px 20px; font-size: 1.05rem; border-radius: var(--radius-sm); }
    .nav-toggle { display: block; }
    .header-phone span { display: none; }
    .header-phone { padding: 10px; }

    .hero { min-height: auto; padding: 120px 0 80px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }

    .services-grid { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 1.5rem; }

    .page-banner { padding: 110px 0 40px; }
    .article-content { padding: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-actions { flex-direction: column; }
    .btn { justify-content: center; width: 100%; }
    .service-card { padding: 24px; }
}

/* === 动画 === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === 滚动条美化 === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-lighter); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }
