/* ==========================================================
   壹元堂科技官网 - 公共样式
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; background: #fff; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* 顶部栏 */
.top-bar { background: #f5f7fa; padding: 8px 10%; font-size: 13px; color: #888; display: flex; justify-content: space-between; }
.top-bar a { margin-left: 20px; color: #888; }
.top-bar a:hover { color: #1f6fed; }

/* 主导航 */
header {
    background: #fff;
    padding: 0 10%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 999;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #1f6fed, #03a9f4);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: bold; font-size: 18px;
}
.logo-text { font-size: 20px; font-weight: 600; color: #222; letter-spacing: 1px; }
.nav { display: flex; gap: 6px; }
.nav > li { position: relative; }
.nav > li > a {
    display: block; padding: 0 20px; line-height: 72px;
    font-size: 15px; color: #444; transition: color 0.2s;
}
.nav > li > a:hover, .nav > li.active > a { color: #1f6fed; }
.nav > li.active > a::after {
    content: ""; display: block; height: 2px; background: #1f6fed;
    position: absolute; bottom: 0; left: 20px; right: 20px;
}
.nav-btn {
    padding: 8px 24px;
    background: linear-gradient(135deg, #1f6fed, #03a9f4);
    color: #fff !important;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5 !important;
    margin-left: 20px;
    align-self: center;
}
.nav-btn:hover { opacity: 0.9; }

/* 页面 Banner */
.page-banner {
    height: 280px;
    background: linear-gradient(135deg, #0c2e6b 0%, #1f6fed 50%, #03a9f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: "";
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    top: -150px; right: 10%;
}
.page-banner h1 { font-size: 36px; margin-bottom: 12px; font-weight: 600; position: relative; }
.page-banner p { font-size: 16px; opacity: 0.85; position: relative; }
.breadcrumb {
    position: absolute;
    bottom: 20px;
    left: 10%;
    font-size: 13px;
    opacity: 0.8;
}
.breadcrumb a:hover { text-decoration: underline; }

/* 通用 section */
.section { padding: 80px 10%; }
.section-gray { background: #f8f9fa; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
    font-size: 32px; color: #222; margin-bottom: 12px;
    font-weight: 600;
}
.section-header p { color: #888; font-size: 15px; }
.section-header .line {
    width: 50px; height: 3px;
    background: linear-gradient(90deg, #1f6fed, #03a9f4);
    margin: 18px auto 0;
    border-radius: 2px;
}

/* 产品卡片 */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.product-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(31,111,237,0.12);
    border-color: transparent;
}
.product-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}
.icon-1 { background: linear-gradient(135deg, #e3f2fd, #bbdefb); color: #1976d2; }
.icon-2 { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #388e3c; }
.icon-3 { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #f57c00; }
.icon-4 { background: linear-gradient(135deg, #f3e5f5, #e1bee7); color: #7b1fa2; }
.product-card h3 { font-size: 18px; color: #222; margin-bottom: 12px; font-weight: 600; }
.product-card p { color: #777; font-size: 14px; line-height: 1.8; margin-bottom: 18px; }
.product-more { color: #1f6fed; font-size: 13px; font-weight: 500; }
.product-more:hover { text-decoration: underline; }

/* 解决方案卡片 */
.solutions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.solution-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.solution-banner {
    height: 180px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; font-weight: 500;
}
.sol-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.sol-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.sol-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.solution-body { padding: 25px; }
.solution-body h3 { font-size: 18px; margin-bottom: 10px; color: #222; }
.solution-body p { color: #777; font-size: 14px; line-height: 1.8; margin-bottom: 15px; }
.solution-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.solution-tags span {
    padding: 4px 12px;
    background: #f0f5ff;
    color: #1f6fed;
    font-size: 12px;
    border-radius: 12px;
}

/* 新闻卡片 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    cursor: pointer;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.news-img {
    height: 180px;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
}
.news-img.n2 { background: linear-gradient(135deg, #d299c2, #fef9d7); }
.news-img.n3 { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.news-body { padding: 20px 22px 25px; }
.news-date { color: #aaa; font-size: 13px; margin-bottom: 8px; }
.news-body h3 { font-size: 16px; color: #222; margin-bottom: 10px; line-height: 1.5; }
.news-body p { color: #888; font-size: 13px; line-height: 1.7; }

/* 合作伙伴 */
.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}
.partner-logo {
    width: 160px; height: 70px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #aaa; font-size: 14px; font-weight: 500;
    transition: all 0.3s;
}
.partner-logo:hover {
    border-color: #1f6fed;
    color: #1f6fed;
    box-shadow: 0 5px 15px rgba(31,111,237,0.1);
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, #1f6fed, #03a9f4);
    padding: 70px 10%;
    text-align: center;
    color: #fff;
}
.cta-section h2 { font-size: 30px; margin-bottom: 15px; font-weight: 600; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 30px; }
.btn-primary {
    display: inline-block;
    padding: 12px 36px;
    background: #fff;
    color: #1f6fed;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.btn-outline {
    display: inline-block;
    padding: 12px 36px;
    border: 1.5px solid rgba(255,255,255,0.6);
    color: #fff;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-blue {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(135deg, #1f6fed, #03a9f4);
    color: #fff;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-blue:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31,111,237,0.3); }

/* 页脚 */
footer { background: #1e2a3a; color: #a0aec0; }
.footer-main {
    padding: 60px 10% 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.footer-col h4 {
    color: #fff; font-size: 15px; margin-bottom: 20px; font-weight: 500;
}
.footer-col ul li { margin-bottom: 12px; font-size: 13px; }
.footer-col ul li a:hover { color: #fff; }
.footer-brand .footer-logo {
    display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.footer-brand .footer-logo .logo-icon { width: 34px; height: 34px; font-size: 16px; }
.footer-brand .footer-logo .logo-text { color: #fff; font-size: 18px; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-bottom: 15px; }
.footer-contact p { font-size: 13px; line-height: 2; }
.footer-contact .hotline {
    font-size: 22px; color: #fff; font-weight: 600;
    margin: 10px 0 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.footer-bottom a { margin-left: 20px; }
.footer-bottom a:hover { color: #fff; }

/* Hero 首页专属 */
.hero {
    height: 520px;
    background: linear-gradient(135deg, #0c2e6b 0%, #1f6fed 40%, #03a9f4 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero::before {
    content: "";
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -200px; right: -100px;
}
.hero::after {
    content: "";
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(3,169,244,0.3) 0%, transparent 70%);
    bottom: -100px; left: 10%;
}
.hero-content {
    width: 100%;
    padding: 0 10%;
    color: #fff;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hero-text { max-width: 550px; }
.hero-text h1 { font-size: 42px; margin-bottom: 20px; font-weight: 600; line-height: 1.3; }
.hero-text p { font-size: 17px; opacity: 0.9; margin-bottom: 35px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; }
.hero-graphic {
    width: 420px; height: 320px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-graphic-inner {
    width: 340px; height: 240px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.graphic-bar { display: flex; gap: 8px; align-items: flex-end; height: 100px; }
.graphic-bar span {
    width: 24px; background: linear-gradient(to top, #4fc3f7, #fff);
    border-radius: 4px 4px 0 0;
    animation: barUp 2s ease-out forwards;
}
.graphic-bar span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.graphic-bar span:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.graphic-bar span:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.graphic-bar span:nth-child(4) { height: 85%; animation-delay: 0.4s; }
.graphic-bar span:nth-child(5) { height: 65%; animation-delay: 0.5s; }
.graphic-bar span:nth-child(6) { height: 95%; animation-delay: 0.6s; }
.graphic-bar span:nth-child(7) { height: 75%; animation-delay: 0.7s; }
@keyframes barUp { from { height: 0; } }
.graphic-label { color: rgba(255,255,255,0.8); font-size: 13px; }

.stats-bar {
    background: #fff;
    margin: -50px 10% 0;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 40px 0;
    display: flex;
    justify-content: space-around;
    position: relative;
    z-index: 3;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 38px;
    font-weight: bold;
    background: linear-gradient(135deg, #1f6fed, #03a9f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.stat-label { color: #888; font-size: 14px; }

/* 响应式 */
@media (max-width: 900px) {
    .products { grid-template-columns: repeat(2, 1fr); }
    .solutions, .news-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .hero { height: auto; padding: 80px 0; }
    .hero-graphic { display: none; }
    .stats-bar { flex-wrap: wrap; gap: 20px; padding: 30px 20px; }
}
