/* ============================================================
   审信瑞诚税务师事务所官网样式
   风格：深蓝主色 + 白底 + 红色点缀（参考 crtax.com）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a3a6e;      /* 深蓝主色 */
    --primary-dark: #142b54; /* 深蓝加深 */
    --accent: #c41230;       /* 红色点缀 */
    --text: #333333;         /* 正文文字 */
    --title: #000000;        /* 标题 */
    --bg-gray: #f5f7fa;      /* 浅灰背景 */
    --footer-bg: #202020;    /* 页脚深灰 */
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    background: #fff;
}

/* 动画 */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; color: var(--title); line-height: 1.3; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.text-center { text-align: center; }

/* ============ 顶部导航 ============ */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; }
.logo a { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 44px; width: auto; display: block; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--primary); white-space: nowrap; }

.main-nav ul { display: flex; gap: 36px; }
.main-nav a { color: var(--text); font-size: 16px; padding: 8px 0; position: relative; transition: color .2s; }
.main-nav a:hover { color: var(--accent); }
.main-nav li.active a { color: var(--accent); font-weight: 700; }
.main-nav li.active a::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 3px; background: var(--accent); border-radius: 2px;
}
.header-tel .tel-btn {
    background: var(--accent);
    color: #fff;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
}
.header-tel .tel-btn:hover { background: #a30f27; }

/* ============ 首页 Banner ============ */
.banner {
    background: linear-gradient(180deg, rgba(14, 32, 66, .92) 0%, rgba(26, 58, 110, .80) 55%, rgba(20, 43, 84, .94) 100%), url('../img/banner_city.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding: 130px 0;
    position: relative;
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute; right: -80px; top: -80px;
    width: 380px; height: 380px;
    border: 60px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
    animation: floaty 8s ease-in-out infinite;
}
.banner::after {
    content: '';
    position: absolute; left: -120px; bottom: -140px;
    width: 320px; height: 320px;
    border: 46px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
    animation: floaty 11s ease-in-out infinite reverse;
}
.banner-inner { position: relative; z-index: 1; }
.banner-title-row { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.banner-logo { height: 92px; width: auto; }
.banner-content { animation: fadeUp .9s ease-out; }
.banner-content h1 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.banner-slogan {
    font-size: 24px;
    color: #e8edf7;
    letter-spacing: 6px;
    margin-bottom: 26px;
    animation: fadeUp .9s ease-out .15s both;
}
.banner-tags { display: flex; gap: 12px; margin-bottom: 34px; justify-content: center; animation: fadeUp .9s ease-out .3s both; }
.banner-tags .tag {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(4px);
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    border: none;
}
.btn-outline { border: 1px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-white {
    background: #fff; color: var(--primary);
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.btn-white:hover {
    background: #e8edf7; color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

/* ============ 通用 Section ============ */
.section { padding: 70px 0; }
.section-gray { background: var(--bg-gray); }
.section-blue {
    background: linear-gradient(180deg, rgba(14, 32, 66, .92) 0%, rgba(26, 58, 110, .86) 100%), url('../img/cta_bg.jpg') center/cover no-repeat fixed;
    color: #fff;
    padding: 64px 0;
}
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 {
    font-size: 32px;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}
.section-head h2::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; background: var(--accent); border-radius: 2px;
}
.section-sub { color: #999; letter-spacing: 3px; margin-top: 8px; font-size: 14px; }

/* 公司简介 */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.about-text p { margin-bottom: 24px; color: #555; }
.about-visual { position: relative; }
.about-visual::before {
    content: '';
    position: absolute; top: -14px; right: -14px;
    width: 120px; height: 120px;
    border-top: 4px solid var(--accent);
    border-right: 4px solid var(--accent);
    border-radius: 0 12px 0 0;
    opacity: .6;
}
.about-img {
    width: 100%; height: 340px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 22px 44px rgba(26, 58, 110, .20);
}
.about-badge {
    position: absolute; left: -16px; bottom: 26px;
    background: linear-gradient(135deg, var(--accent), #e02442);
    color: #fff;
    border-radius: 10px;
    padding: 16px 24px;
    box-shadow: 0 12px 28px rgba(196, 18, 48, .4);
    animation: floaty 5s ease-in-out infinite;
}
.about-badge strong { display: block; font-size: 18px; letter-spacing: 1px; }
.about-badge span { font-size: 11px; letter-spacing: 2px; opacity: .85; }

/* 公司简介照片轮播 */
.about-slider {
    position: relative;
    width: 100%; height: 340px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 22px 44px rgba(26, 58, 110, .20);
}
.about-slide {
    position: absolute; inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
}
.about-slide.active { opacity: 1; visibility: visible; }
.about-slide img.about-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0; box-shadow: none;
    display: block;
}
.slider-btn {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.88);
    color: #1a3a6e; font-size: 18px;
    line-height: 1; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 3;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
}
.slider-btn:hover { background: var(--accent); color: #fff; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
    position: absolute; left: 0; right: 0; bottom: 12px;
    display: flex; justify-content: center; gap: 8px;
    z-index: 3;
}
.slider-dots span {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.75);
    cursor: pointer;
    transition: background .2s, width .2s;
}
.slider-dots span.on { background: var(--accent); width: 22px; border-radius: 5px; }
.about-visual .about-badge { z-index: 4; }

/* 公司理念 */
.about-cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini-card {
    display: flex; align-items: center; gap: 16px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
    transition: transform .25s, box-shadow .25s;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26, 58, 110, .14); }
.mini-icon {
    position: relative;
    width: 54px; height: 54px; flex-shrink: 0;
    background: radial-gradient(circle at 32% 26%, #6a92d8 0%, #3a66b0 38%, #1e4589 72%, #122f60 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, .30);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, .38),
        inset 0 -4px 8px rgba(8, 20, 45, .42),
        inset 3px 0 5px rgba(255, 255, 255, .14),
        0 10px 22px rgba(26, 58, 110, .34);
    transition: transform .3s, box-shadow .3s;
}
.mini-icon::after {
    content: '';
    position: absolute; top: 4px; left: 10%; right: 10%; height: 7px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
    border-radius: 50%;
    pointer-events: none;
}
.mini-icon svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.mini-card:hover .mini-icon {
    transform: translateY(-2px) scale(1.06);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, .42),
        inset 0 -4px 8px rgba(8, 20, 45, .42),
        0 14px 28px rgba(26, 58, 110, .40);
}
.mini-card h4 { font-size: 16px; margin-bottom: 2px; }
.mini-card p { font-size: 13px; color: #888; }

/* 服务网格 */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 34px 26px;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(26, 58, 110, .16); }
.service-card:hover::before { opacity: 1; }
.service-icon {
    position: relative;
    width: 68px; height: 68px;
    margin: 0 auto 20px;
    background: radial-gradient(circle at 32% 24%, #6b92dd 0%, #3a67b4 36%, #1f478c 70%, #142f62 100%);
    color: #fff;
    border-radius: 19px;
    border: 1px solid rgba(255, 255, 255, .30);
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, .40),
        inset 0 -5px 10px rgba(8, 20, 45, .44),
        inset 4px 0 6px rgba(255, 255, 255, .15),
        0 12px 24px rgba(26, 58, 110, .34);
    transition: transform .3s, box-shadow .3s;
}
.service-icon::after {
    content: '';
    position: absolute; top: 5px; left: 10%; right: 10%; height: 9px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
    border-radius: 50%;
    pointer-events: none;
}
.service-icon svg { width: 34px; height: 34px; position: relative; z-index: 1; }
.service-card:hover .service-icon {
    transform: translateY(-4px) rotate(-5deg) scale(1.06);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, .45),
        inset 0 -5px 10px rgba(8, 20, 45, .44),
        0 16px 32px rgba(26, 58, 110, .46);
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--primary); }
.service-card p { font-size: 14px; color: #777; }

/* 数据展示 */
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.data-num { font-size: 46px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.data-label { font-size: 16px; color: rgba(255, 255, 255, .85); letter-spacing: 1px; }

/* 新闻 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 24px;
    display: block;
    transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, .09); }
.news-date { color: var(--accent); font-size: 13px; margin-bottom: 10px; }
.news-card h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: 14px; color: #777; margin-bottom: 14px; }
.news-more { color: var(--primary); font-size: 13px; font-weight: 600; }

/* CTA */
.section-cta {
    position: relative;
    background: linear-gradient(180deg, rgba(120, 8, 24, .86) 0%, rgba(196, 18, 48, .80) 100%), url('../img/cta_bg.jpg') center/cover no-repeat fixed;
    color: #fff;
    text-align: center;
    padding: 80px 0;
    overflow: hidden;
}
.section-cta::before {
    content: '';
    position: absolute; right: -60px; top: -60px;
    width: 240px; height: 240px;
    border: 40px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
    animation: floaty 9s ease-in-out infinite;
}
.section-cta h2 { color: #fff; font-size: 30px; margin-bottom: 12px; position: relative; z-index: 1; }
.section-cta p { font-size: 18px; margin-bottom: 26px; position: relative; z-index: 1; }
.section-cta p a {
    color: #fff; position: relative; z-index: 1;
    border-bottom: 1px dashed rgba(255, 255, 255, .55);
    transition: border-color .2s;
}
.section-cta p a:hover { border-bottom-color: #fff; }
.section-cta a.btn { position: relative; z-index: 1; }

/* ============ 内页横幅 ============ */
.page-banner {
    background: linear-gradient(180deg, rgba(14, 32, 66, .90) 0%, rgba(26, 58, 110, .82) 100%), url('../img/cta_bg.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 64px 0;
}
.page-banner h1 { color: #fff; font-size: 32px; margin-bottom: 6px; }
.page-banner p { color: rgba(255, 255, 255, .7); letter-spacing: 3px; font-size: 14px; }

/* 富文本 */
.rich-text p { margin-bottom: 16px; color: #555; }

/* 新闻列表 */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-row {
    display: flex; align-items: center; gap: 24px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 20px 24px;
    transition: box-shadow .2s, transform .2s;
}
.news-row:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateX(4px); }
.news-date-box {
    width: 76px; flex-shrink: 0;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    padding: 10px 0;
}
.news-date-box .d { display: block; font-size: 26px; font-weight: 800; }
.news-date-box .ym { font-size: 12px; opacity: .8; }
.news-row-body { flex: 1; }
.news-row-body h3 { font-size: 17px; margin-bottom: 4px; }
.news-row-body p { font-size: 14px; color: #888; }
.news-arrow { color: var(--accent); font-size: 22px; }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pagination a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
}
.pagination a.current, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 文章详情 */
.article { background: #fff; padding: 30px; border: 1px solid #eef0f4; border-radius: 8px; }
.article h1 { font-size: 24px; margin-bottom: 14px; }
.article-meta { color: #999; font-size: 13px; border-bottom: 1px solid #eef0f4; padding-bottom: 18px; margin-bottom: 22px; display: flex; gap: 24px; }
.article-back { margin-top: 30px; }
.article-back a { color: var(--primary); font-weight: 600; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-list li { margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px; }
.contact-list .ci {
    width: 36px; height: 36px;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.contact-list .ci-value { line-height: 2.1; }
.contact-list .ci-value a { color: var(--primary); }
.contact-list .ci-value a:hover { color: var(--accent); }
.contact-form {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.contact-form h3 { margin-bottom: 20px; color: var(--primary); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: #555; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-privacy {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    margin: -4px 0 14px;
    padding: 8px 12px;
    background: #f7f9fc;
    border-left: 3px solid #dce3ef;
    border-radius: 4px;
}
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-error { background: #fdecea; color: #c62828; }

/* ============ 页脚 ============ */
.site-footer { background: var(--footer-bg); color: #aaa; }
.footer-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1.2fr 1fr;
    gap: 40px;
    padding: 50px 20px;
}
.footer-col h4 { color: #fff; margin-bottom: 18px; font-size: 16px; }
.footer-col p { font-size: 14px; line-height: 1.9; }
.footer-col ul li { font-size: 14px; line-height: 2.2; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: #777; }

/* 页脚联系方式 */
.footer-contact li { font-size: 14px; line-height: 1.9; display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .fc-label {
    color: #fff; font-weight: 600; flex-shrink: 0;
    width: 32px;
}
.footer-contact .fc-value { flex: 1; min-width: 0; word-break: break-all; }
.footer-contact a:hover { color: #fff; }

/* 页脚二维码 */
.footer-qr .qr-list { display: flex; gap: 20px; }
.qr-item { text-align: center; }
.qr-item img {
    width: 96px; height: 96px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 6px;
    display: block;
    margin-bottom: 6px;
}
.qr-item p { font-size: 12px; color: #999; }

/* ============ 主要客户 ============ */
.client-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: center;
}
.client-item {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: transform .25s, box-shadow .25s;
}
.client-item:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .08); }
.client-item img { max-width: 100%; max-height: 70px; object-fit: contain; opacity: .85; }
.client-item img:hover { opacity: 1; }
.client-name { font-size: 15px; color: #666; font-weight: 600; text-align: center; }

/* ============ 响应式 ============ */
@media (max-width: 992px) {
    .service-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-cards-row { grid-template-columns: repeat(3, 1fr); }
    .data-grid { grid-template-columns: repeat(2, 1fr); }
    .client-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .banner, .section-blue, .section-cta { background-attachment: scroll; }
    .main-nav { display: none; }
    .header-inner { height: 64px; }
    .logo-img { height: 36px; }
    .logo-text { font-size: 16px; }
    .banner-content h1 { font-size: 28px; }
    .banner-slogan { font-size: 18px; }
    .banner-logo { height: 60px; }
    .about-cards-row { grid-template-columns: 1fr; }
    .about-img { height: 260px; }
    .about-slider { height: 260px; }
    .slider-btn { width: 32px; height: 32px; font-size: 15px; }
    .about-badge { left: 8px; bottom: 14px; }
    .service-grid, .news-grid { grid-template-columns: 1fr; }
    .client-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
}
