/* =============================================================================
 * 页面公共样式：页脚 + 通用 Banner + 通用卡片（素材/模板/合同/电商/支付/发卡/阅读/合作 等页面共用）
 * ============================================================================= */

/* ===== 页脚区域（与文档/源码/音乐/相册等页面保持一致） ===== */
.footer {
    margin-top: 40px;
    padding: 50px 0 70px;
    text-align: center;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}
.footer > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary, linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%));
    opacity: 0.6;
}
.footer::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.footer p {
    color: rgba(0,0,0,0.55);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0;
}
.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--grad-primary, linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    display: inline-block;
}
.footer-slogan {
    font-size: 0.8rem;
    color: rgba(0,0,0,0.4);
    margin-bottom: 20px;
    font-style: italic;
}
.footer-divider {
    width: 60px;
    height: 2px;
    background: var(--grad-primary, linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%));
    border-radius: 2px;
    margin: 15px auto;
    opacity: 0.4;
}
.footer-certs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}
.footer-cert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 25px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.06);
    color: #334155;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.footer-cert:hover {
    background: var(--grad-primary, linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%));
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: transparent;
}
.footer-cert i { font-size: 0.9rem; }
.footer-links {
    margin: 18px 0;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}
.footer-links a {
    color: rgba(0,0,0,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 8px;
}
.footer-links a:hover {
    color: var(--color-primary, #06b6d4);
    background: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}
.footer-links .sep {
    color: rgba(0,0,0,0.15);
    font-size: 0.7rem;
}
.footer-bottom {
    margin-top: 15px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: center;
}
/* 版权信息 */
.footer-copyright {
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0 0 14px;
    color: rgba(0,0,0,0.6);
}
/* 备案信息（ICP + 公安）居中胶囊徽章 */
.footer-beian {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-beian a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1;
    color: rgba(0,0,0,0.58);
    text-decoration: none;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(0,0,0,0.07);
    padding: 8px 16px;
    border-radius: 999px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.footer-beian a img {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}
.footer-beian a:hover {
    color: var(--color-primary, #06b6d4);
    border-color: var(--color-primary, #06b6d4);
    background: #fff;
    box-shadow: 0 6px 18px rgba(6,182,212,0.18);
    transform: translateY(-2px);
}
.footer-beian .beian-sep {
    color: rgba(0,0,0,0.2);
    font-size: 0.8rem;
}
@media (max-width: 480px) {
    .footer-beian { gap: 8px; }
    .footer-beian a {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
    .footer-beian .beian-sep { display: none; }
}
.pets-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    pointer-events: none;
    padding-bottom: 10px;
    z-index: 3;
}
.pet {
    font-size: 1.5rem;
    display: inline-block;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    transform-origin: bottom center;
}
.pet:nth-child(1) { animation-delay: 0s; }
.pet:nth-child(2) { animation-delay: 0.15s; }
.pet:nth-child(3) { animation-delay: 0.3s; }
.pet:nth-child(4) { animation-delay: 0.45s; }
.pet:nth-child(5) { animation-delay: 0.6s; }
.pet:nth-child(6) { animation-delay: 0.75s; }
.pet:nth-child(7) { animation-delay: 0.9s; }
.pet-bounce { animation-name: petBounce; }
.pet-wiggle { animation-name: petWiggle; }
.pet-float { animation-name: petFloat; }
.pet-rainbow { animation-name: petRainbow; }
@keyframes petBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes petWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}
@keyframes petFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(3deg); }
    66% { transform: translateY(-4px) rotate(-2deg); }
}
@keyframes petRainbow {
    0%, 100% { transform: translateY(0) scale(1); filter: hue-rotate(0deg); }
    50% { transform: translateY(-10px) scale(1.1); filter: hue-rotate(180deg); }
}
.myssl-badge {
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: 80px;
    height: auto;
    line-height: 0;
    z-index: 2;
}
.myssl-badge img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}
.myssl-badge:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
@media (max-width: 500px) {
    .myssl-badge { width: 64px; bottom: 5px; right: 8px; }
}
@media (max-width: 768px) {
    .footer { padding: 36px 0 50px; }
    .footer-links { gap: 10px; }
}

/* ===== 通用页面 Banner ===== */
.pg-banner {
    position: relative;
    padding: 84px 20px 64px;
    text-align: center;
    color: white;
    overflow: hidden;
}
.pg-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 2px at 20% 30%, rgba(255,255,255,0.5) 1px, transparent 1.5px),
        radial-gradient(circle 1.5px at 75% 60%, rgba(255,255,255,0.4) 1px, transparent 1.5px),
        radial-gradient(circle 2px at 50% 80%, rgba(255,255,255,0.45) 1px, transparent 1.5px),
        radial-gradient(circle 1.5px at 85% 20%, rgba(255,255,255,0.4) 1px, transparent 1.5px),
        radial-gradient(circle 1.5px at 15% 70%, rgba(255,255,255,0.35) 1px, transparent 1.5px);
    background-size: 250px 250px;
    opacity: 0.6;
    pointer-events: none;
}
.pg-banner::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg-soft, #f8fafc), transparent);
    pointer-events: none;
}
.pg-banner .pg-icon {
    font-size: 2.6rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.25));
}
.pg-banner h1 {
    font-size: 2.7rem;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.pg-banner .pg-sub {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}
@media (max-width: 768px) {
    .pg-banner { padding: 60px 16px 46px; }
    .pg-banner h1 { font-size: 2rem; }
}

/* ===== 通用内容容器 ===== */
.pg-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 30px;
}
.pg-section {
    margin-bottom: 34px;
}
.sec-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.sec-head .sec-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.sec-head h2 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #0f172a;
}
.sec-head .sec-more {
    margin-left: auto;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    transition: all .25s ease;
}
.sec-head .sec-more:hover { color: var(--color-primary, #06b6d4); }

/* 分类卡片网格 */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
@media (max-width: 640px) {
    .pg-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
    .pg-grid { grid-template-columns: 1fr; }
}
.cat-card {
    position: relative;
    padding: 22px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    transition: all .28s ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}
.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
    border-color: transparent;
}
.cat-card .cat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 19px;
    margin-bottom: 14px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.14);
}
.cat-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #0f172a;
}
.cat-card p {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}
.cat-card .cat-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    opacity: 0.9;
}

/* 条目列表 */
.pg-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    transition: all .25s ease;
}
.item-row:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.09);
    border-color: transparent;
}
.item-row .item-no {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.item-row .item-main { flex: 1; min-width: 0; }
.item-row .item-main h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #0f172a;
}
.item-row .item-main p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}
.item-row .item-btn {
    flex: 0 0 auto;
    font-size: 0.8rem;
    padding: 7px 16px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: all .25s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.item-row .item-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* 步骤流程 */
.steps-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}
.step-card {
    text-align: center;
    padding: 26px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    transition: all .28s ease;
    position: relative;
}
.step-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0,0,0,0.12); }
.step-card .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    margin: 0 auto 12px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.14);
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; color: #0f172a; }
.step-card p { font-size: 0.82rem; color: #64748b; margin: 0; line-height: 1.6; }

/* 联系方式/信息条 */
.contact-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    transition: all .28s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.contact-card .ct-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.14);
}
.contact-card h4 { font-size: 0.96rem; font-weight: 700; margin: 0 0 3px; color: #0f172a; }
.contact-card p { font-size: 0.84rem; color: #64748b; margin: 0; }

/* 公告条 */
.notice-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 14px;
    margin-bottom: 26px;
    font-size: 0.9rem;
    color: #475569;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}
.notice-bar i { color: var(--color-primary, #06b6d4); }
