/* ===== 卓越证件制作中心 - 粉色浪漫主题 ===== */
:root {
    --primary: #e91e63;
    --primary-dark: #c1134e;
    --primary-light: #fce4ec;
    --accent: #3f51b5;
    --accent-dark: #303f9f;
    --text: #4a3340;
    --text-light: #8a7080;
    --bg: #fff5f8;
    --bg-soft: #ffeef3;
    --border: #f8d7e3;
    --shadow: 0 8px 28px rgba(233, 30, 99, 0.14);
    --shadow-hover: 0 14px 36px rgba(233, 30, 99, 0.24);
    --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    font-size: 15px;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 245, 248, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.12);
    border-bottom: 3px solid var(--primary-light);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: var(--primary);
    font-weight: bold;
    font-size: 22px;
}
.logo span {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 1px;
    font-weight: normal;
}
.logo::before {
    content: "🌸";
    margin-right: 8px;
    font-size: 24px;
    display: inline-block;
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
    color: var(--text);
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 15px;
    transition: all .25s;
}
.nav a:hover, .nav a.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Banner / Carousel ===== */
.banner {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 36px 36px;
}
.banner-slider {
    display: flex;
    transition: transform .6s ease;
}
.banner-slide {
    min-width: 100%;
    position: relative;
    height: 470px;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(233, 30, 99, 0.68), rgba(63, 81, 181, 0.42));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}
.banner-slide .overlay h2 {
    font-size: 38px;
    margin-bottom: 14px;
    text-shadow: 0 2px 14px rgba(0,0,0,.28);
}
.banner-slide .overlay p {
    font-size: 18px;
    opacity: .96;
}
.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.42);
    border: none;
    color: #fff;
    font-size: 34px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: .25s;
    backdrop-filter: blur(4px);
}
.banner-btn:hover { background: var(--primary); }
.banner-btn.prev { left: 18px; }
.banner-btn.next { right: 18px; }
.banner-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.banner-dots li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: .25s;
}
.banner-dots li.active { background: #fff; width: 32px; border-radius: 6px; }

/* ===== Page Banner ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    text-align: center;
    padding: 72px 20px 62px;
    border-radius: 0 0 36px 36px;
    position: relative;
    overflow: hidden;
}
.page-banner::before, .page-banner::after {
    content: "🌸";
    position: absolute;
    font-size: 90px;
    opacity: .2;
}
.page-banner::before { top: 10px; left: 8%; transform: rotate(-20deg); }
.page-banner::after { bottom: 10px; right: 8%; transform: rotate(25deg); }
.page-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.page-banner p { font-size: 17px; opacity: .96; position: relative; z-index: 1; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: var(--bg-soft);
    padding: 14px 0;
    font-size: 14px;
    color: var(--text-light);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }

/* ===== Section ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section-title {
    text-align: center;
    margin-bottom: 46px;
    position: relative;
}
.section-title h2 {
    font-size: 32px;
    color: var(--text);
    margin-bottom: 8px;
    display: inline-block;
}
.section-title p { color: var(--text-light); font-size: 16px; }
.section-title .bar {
    display: block;
    width: 70px;
    height: 4px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
}

/* ===== About Grid ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: center;
}
.about-img img {
    width: 100%;
    height: 370px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.about-text h3 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 16px;
}
.about-text p { margin-bottom: 14px; color: var(--text-light); }
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
.about-features li {
    color: var(--text);
    padding: 10px 14px;
    background: var(--primary-light);
    border-radius: 14px;
    font-size: 14px;
}

/* ===== Masonry 瀑布流 ===== */
.masonry { column-count: 3; column-gap: 24px; }
.masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
    border: 1px solid var(--border);
}
.masonry-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.masonry-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.masonry-item .info { padding: 18px 22px; }
.masonry-item .info h3, .masonry-item .info h4 {
    color: var(--text);
    font-size: 18px;
    margin-bottom: 8px;
}
.masonry-item .info p { color: var(--text-light); font-size: 14px; }
.masonry-item .tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 14px;
    border-radius: 14px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* ===== Products Grid (home preview) ===== */
.products-grid, .cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.product-card, .case-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
    border: 1px solid var(--border);
}
.product-card:hover, .case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.product-card img, .case-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.product-card .info, .case-card .info { padding: 18px 22px; }
.product-card h3, .product-card h4, .case-card h3, .case-card h4 { color: var(--text); font-size: 18px; margin-bottom: 8px; }
.product-card p, .case-card p { color: var(--text-light); font-size: 14px; }

/* ===== News List ===== */
.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item {
    display: flex;
    gap: 22px;
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s;
    border-left: 4px solid var(--primary);
}
.news-item:hover { transform: translateX(6px); }
.news-date {
    min-width: 86px;
    text-align: center;
    background: var(--primary-light);
    border-radius: 14px;
    padding: 14px 10px;
    color: var(--primary-dark);
}
.news-date .day { display: block; font-size: 28px; font-weight: bold; line-height: 1; }
.news-date .month { font-size: 12px; }
.news-info h3, .news-info h4 { color: var(--text); font-size: 18px; margin-bottom: 8px; }
.news-info p { color: var(--text-light); font-size: 14px; }

/* ===== Reviews ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.review-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--border);
}
.review-card::before {
    content: "\201C";
    position: absolute;
    top: 8px;
    right: 22px;
    font-size: 60px;
    color: var(--primary-light);
    line-height: 1;
}
.review-card p { color: var(--text-light); margin-bottom: 18px; position: relative; z-index: 1; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author .avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}
.review-author .name { font-weight: bold; color: var(--text); }
.review-author .title { font-size: 13px; color: var(--text-light); }

/* ===== FAQ ===== */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text);
}
.faq-question .icon {
    color: var(--primary);
    font-size: 22px;
    transition: transform .3s;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 24px 18px; }
.faq-answer p { color: var(--text-light); font-size: 14px; }

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}
.contact-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 36px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-info h3 { font-size: 22px; margin-bottom: 22px; }
.contact-info ul li {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.contact-info .icon {
    font-size: 22px;
    background: rgba(255,255,255,.22);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info a { color: #fff; }
.contact-form {
    background: #fff;
    padding: 36px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.contact-form h3 { color: var(--primary); font-size: 22px; margin-bottom: 22px; }
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    transition: border .25s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    cursor: pointer;
    transition: .25s;
    font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ===== Links ===== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.link-item {
    background: #fff;
    padding: 18px;
    text-align: center;
    border-radius: 16px;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: .25s;
    border: 1px solid var(--border);
}
.link-item:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-4px);
}
.sidebar-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 18px;
    border-left: 5px solid var(--primary);
    padding-left: 12px;
}

/* ===== Article ===== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
}
.content-page {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.content-page h1 {
    color: var(--text);
    font-size: 28px;
    margin-bottom: 16px;
    line-height: 1.4;
}
.content-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px dashed var(--border);
    color: var(--text-light);
    font-size: 13px;
}
.article-body p { margin-bottom: 16px; color: var(--text); }
.article-body h2 {
    color: var(--primary);
    font-size: 22px;
    margin: 28px 0 14px;
    padding-left: 14px;
    border-left: 5px solid var(--primary);
}
.article-body ul { margin: 0 0 16px 22px; }
.article-body ul li { margin-bottom: 8px; list-style: disc; }
.article-body img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 16px;
    margin: 20px 0;
}
.article-sidebar .sidebar-widget {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.article-sidebar .sidebar-widget a {
    display: block;
    padding: 10px 0;
    color: var(--text);
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.article-sidebar .sidebar-widget a:last-child { border-bottom: none; }
.article-sidebar .sidebar-widget a:hover { color: var(--primary); padding-left: 6px; }

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #c1134e, #e91e63);
    color: #ffeaf2;
    padding: 50px 0 0;
    margin-top: 30px;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 30px;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 17px;
}
.footer-col p, .footer-col a {
    color: #ffd6e4;
    font-size: 14px;
    line-height: 2;
}
.footer-col a { display: block; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 36px;
    border-top: 1px solid rgba(255,255,255,.15);
    font-size: 13px;
    color: #ffb8cf;
}

/* ===== Floating Contact & Back Top ===== */
.floating-contact {
    position: fixed;
    right: 18px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 90;
}
.floating-contact a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow);
    transition: .25s;
}
.floating-contact a:hover { transform: scale(1.1); }
.back-top {
    position: fixed;
    right: 18px;
    bottom: 160px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 90;
    box-shadow: var(--shadow);
}
.back-top.show { opacity: 1; visibility: visible; }

/* ===== Stats / Features strip ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.stat-item {
    text-align: center;
    background: #fff;
    padding: 28px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.stat-item .num {
    font-size: 34px;
    font-weight: bold;
    color: var(--primary);
    display: block;
}
.stat-item .label { color: var(--text-light); font-size: 14px; }
