/* =================================================================
   中华家谱数据库 - 优化版样式表 (已集成「试看」按钮)
   优化日期: 2025-08-14
================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700;900&display=swap');

/* ------------------ 根变量 ------------------ */
:root {
    /* 主色系 - 朱砂红渐变 */
    --theme-red: #A92322;
    --theme-red-light: #C73E3A;
    --theme-red-dark: #8C1C1B;
    --theme-red-hover: #B8312F;
    /* 辅助色系 */
    --gold-accent: #D4AF37;
    --gold-light: #F4E4BC;
    --ink-black: #1A1A1A;
    --ink-gray: #2C2C2C;
    --ink-light: #4A4A4A;
    /* 背景色系 - 宣纸质感 */
    --paper-white: #FFF8F0;
    --paper-cream: #F8F2E8;
    --paper-beige: #F4EADB;
    --paper-warm: #F0E6D6;
    /* 内容背景 */
    --content-background: var(--paper-white);
    --card-background: rgba(255, 248, 240, 0.95);
    --overlay-background: rgba(255, 248, 240, 0.85);
    /* 文字颜色 */
    --text-primary: var(--ink-black);
    --text-secondary: var(--ink-light);
    --text-muted: #6B6B6B;
    --text-light: #ffffff;
    /* 边框和分割 */
    --border-color: #E6DAC8;
    --border-accent: var(--gold-accent);
    --divider-color: rgba(212, 175, 55, 0.3);
    /* 阴影系统 */
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-dramatic: 0 16px 48px rgba(0, 0, 0, 0.15);
    /* 字体系统 */
    --font-serif: "Noto Serif SC", "SimSun", "宋体", serif;
    --font-sans: "Noto Serif SC", "SimSun", "宋体", sans-serif;
    --font-decorative: "Noto Serif SC", "SimSun", "宋体", cursive;
    /* 尺寸系统 */
    --border-radius: 12px;
    --border-radius-small: 8px;
    --border-radius-large: 16px;
    --max-width: 1200px;
    --container-padding: 24px;
    /* 动画时长 */
    --transition-fast: 0.15s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

/* ------------------ 全局基础样式 ------------------ */
* {
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--font-serif);
    background: linear-gradient(135deg, var(--paper-cream) 0%, var(--paper-beige) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 宣纸纹理背景 */
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(169, 35, 34, 0.02) 0%, transparent 50%),
        linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.01) 50%, transparent 100%);
    background-attachment: fixed;
}
.container {
    max-width: var(--max-width);
    margin: 20px auto;
    padding: var(--container-padding);
    position: relative;
}

/* ------------------ 页眉优化 ------------------ */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-radius: var(--border-radius-large);
    background: linear-gradient(135deg, 
        rgba(255, 248, 240, 0.95) 0%, 
        rgba(248, 242, 232, 0.9) 100%);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}
/* 装饰性边框 */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--theme-red) 0%, 
        var(--gold-accent) 50%, 
        var(--theme-red) 100%);
}
.header-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo {
    width: 80px;
    height: 80px;
    border: 2px solid var(--gold-accent);
    box-shadow: var(--shadow-soft);
    background: linear-gradient(135deg, var(--paper-white) 0%, var(--gold-light) 100%);
    border-radius: var(--border-radius);
    padding: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-normal) ease;
}
.logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
.site-title h1 {
    margin: 0;
    font-weight: 900;
    font-size: 52px;
    background: linear-gradient(135deg, var(--theme-red) 0%, var(--theme-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.header-subtitle {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: justify;
    text-align-last: justify;
    letter-spacing: 0.5px;
}
/* 页眉作者信息 */
.site-header .author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 250, 0.6);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
.site-header .author-avatar-image {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--gold-accent);
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}
.site-header .author-text h2,
.site-header .author-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-weight: 700;
}

/* ------------------ 导航栏优化 ------------------ */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, 
        rgba(255, 248, 240, 0.8) 0%, 
        rgba(248, 242, 232, 0.6) 100%);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}
.main-nav a {
    height: 44px;
    width: 130px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    font-weight: 900;
    font-size: 16px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--paper-cream) 0%, var(--paper-warm) 100%);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    padding: 0 8px;
    position: relative;
    overflow: hidden;
}
.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    transition: left var(--transition-normal) ease;
}
.main-nav a:hover::before {
    left: 100%;
}
.main-nav a.active,
.main-nav a:hover {
    background: linear-gradient(135deg, var(--theme-red) 0%, var(--theme-red-dark) 100%);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    border-color: var(--theme-red-dark);
}
.main-nav a[href*="tencent.com"] {
    background: linear-gradient(135deg, #FFF2F2 0%, #FFE8E8 100%);
    color: var(--theme-red);
    border-color: var(--theme-red);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(169, 35, 34, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(169, 35, 34, 0); }
}

/* ------------------ 搜索面板优化 ------------------ */
.search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    padding: 28px;
    margin-top: 20px;
    border-radius: var(--border-radius-large);
    background: linear-gradient(135deg, 
        rgba(255, 248, 240, 0.9) 0%, 
        rgba(248, 242, 232, 0.8) 100%);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    position: relative;
    backdrop-filter: blur(10px);
}
.search-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--gold-accent) 50%, 
        transparent 100%);
}
.form-group {
    flex: 1 1 240px;
    min-width: 200px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
    color: var(--text-primary);
    font-size: 15px;
}
.form-group label .required {
    color: var(--theme-red);
    margin-left: 4px;
}
.form-group input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    background: var(--paper-white);
    font-size: 15px;
    color: var(--text-primary);
    transition: all var(--transition-normal) ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}
.form-group input[type="text"]::placeholder {
    color: var(--text-muted);
}
.form-group input[type="text"]:focus {
    border-color: var(--theme-red);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.02),
        0 0 0 3px rgba(169, 35, 34, 0.1),
        var(--shadow-soft);
    transform: translateY(-1px);
}
.button-primary {
    background: linear-gradient(135deg, var(--theme-red) 0%, var(--theme-red-dark) 100%);
    color: var(--text-light);
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left var(--transition-normal) ease;
}
.button-primary:hover::before {
    left: 100%;
}
.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-dramatic);
}
.button-primary:active {
    transform: translateY(0);
}

/* ------------------ 结果区域优化 ------------------ */
.results-summary {
    margin: 24px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--divider-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    border-left: 4px solid var(--gold-accent);
}
#results-area {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 8px;
}
.result-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
}
.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--theme-red) 0%, 
        var(--gold-accent) 50%, 
        var(--theme-red) 100%);
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
    opacity: 0;
    transition: opacity var(--transition-normal) ease;
}
.result-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dramatic);
    border-color: var(--gold-accent);
}
.result-item:hover::before {
    opacity: 1;
}
.result-item h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-weight: 900;
    color: var(--theme-red);
    font-size: 20px;
    border-bottom: 2px solid var(--divider-color);
    padding-bottom: 16px;
    margin: 0 0 16px 0;
}
.result-item h3 .item-id {
    display: inline-block;
    margin-right: 16px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--paper-cream) 100%);
    border: 2px solid var(--gold-accent);
    border-radius: var(--border-radius-small);
    text-align: center;
    color: var(--theme-red);
    font-weight: 900;
    font-size: 18px;
    line-height: 1.2;
    padding: 0.3em 0.8em;
    min-width: 2.8em;
    box-shadow: var(--shadow-soft);
}
.result-item p {
    color: var(--text-primary);
    line-height: 1.8;
    margin: 8px 0 0 0;
}
.result-item .highlight {
    color: var(--theme-red);
    font-weight: 700;
    background: linear-gradient(135deg, 
        rgba(169, 35, 34, 0.1) 0%, 
        rgba(169, 35, 34, 0.05) 100%);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(169, 35, 34, 0.2);
}


/* === 试看按钮样式 === */
.trial-btn-container {
    margin-top: 8px;
    text-align: right;
}

/* 默认样式：灰色背景，表示不可用 */
.trial-btn {
    background-color: #6c757d; /* 灰色 */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

.trial-btn:hover {
    background-color: #6c757d;
    transform: none;
}

/* 可点击状态：变为红色 */
.trial-btn:not(.disabled) {
    background-color: #A92322; /* 与“查询”按钮一致的红色 */
    cursor: pointer;
}

.trial-btn:not(.disabled):hover {
    background-color: #8C1C1B;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ------------------ 页脚优化 ------------------ */
.customer-service-prompt {
    padding: 16px 20px;
    margin: 0 0 12px 0;
    text-align: center;
    color: var(--theme-red);
    font-weight: 900;
    background: linear-gradient(135deg, 
        rgba(169, 35, 34, 0.05) 0%, 
        rgba(212, 175, 55, 0.05) 100%);
    border-radius: var(--border-radius);
    border: 1px solid var(--divider-color);
}
.site-footer-note {
    background: linear-gradient(135deg, var(--ink-gray) 0%, var(--ink-black) 100%);
    color: #bbb;
    padding: 32px;
    border-radius: var(--border-radius-large);
    margin-top: 16px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.site-footer-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--theme-red) 0%, 
        var(--gold-accent) 50%, 
        var(--theme-red) 100%);
}
.qrcode-wrapper {
    display: inline-block;
    margin-bottom: 12px;
}
.qrcode-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 4px solid var(--paper-white);
    background: var(--paper-white);
    transition: all var(--transition-normal) ease;
    cursor: pointer;
}
.qrcode-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-strong);
}
.site-footer-note .author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 15px;
}
.site-footer-note .author-avatar-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--gold-accent);
    box-shadow: var(--shadow-soft);
}
.site-footer-note .author-text h2 {
    color: #fff;
    margin: 0;
    font-size: 20px;
}
.site-footer-note .author-text p {
    margin: 4px 0 0 0;
    color: #d0cfcf;
    font-size: 14px;
}

/* ------------------ 弹窗优化 ------------------ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
}
.popup-content {
    background: var(--paper-white);
    padding: 32px;
    border-radius: var(--border-radius-large);
    max-width: 450px;
    width: 92%;
    box-shadow: var(--shadow-dramatic);
    text-align: center;
    border: 2px solid var(--border-color);
    position: relative;
}
.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--theme-red) 0%, 
        var(--gold-accent) 50%, 
        var(--theme-red) 100%);
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
}
.popup-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.3em;
    color: var(--text-primary);
    font-weight: 700;
}
.popup-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.popup-close-btn {
    background: linear-gradient(135deg, var(--theme-red) 0%, var(--theme-red-dark) 100%);
    color: var(--text-light);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 700;
    transition: all var(--transition-normal) ease;
}
.popup-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
/* 二维码弹窗特殊样式 */
#qr-popup .popup-content img {
    max-width: 280px;
    width: 85%;
    height: auto;
    border-radius: var(--border-radius);
    border: 5px solid var(--gold-accent);
    box-shadow: var(--shadow-medium);
}
#qr-popup .popup-content p {
    margin-top: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ------------------ 分页优化 ------------------ */
.pagination-container {
    display: flex;
    justify-content: center;
    padding: 20px 0 32px 0;
}
.pagination {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: linear-gradient(135deg, 
        rgba(255, 248, 240, 0.8) 0%, 
        rgba(248, 242, 232, 0.6) 100%);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}
.page-btn {
    background: var(--paper-white);
    color: var(--theme-red);
    border: 2px solid var(--theme-red);
    padding: 10px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    min-width: 44px;
    font-weight: 600;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}
.page-btn.active,
.page-btn:hover {
    background: linear-gradient(135deg, var(--theme-red) 0%, var(--theme-red-dark) 100%);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ------------------ 响应式设计 ------------------ */
@media (max-width: 900px) {
    .container {
        padding: 16px;
        margin: 12px;
        width: auto;
    }
    .site-header {
        padding: 16px 20px;
        gap: 12px;
    }
    .logo {
        width: 60px;
        height: 60px;
    }
    .site-title h1 {
        font-size: 38px;
    }
    .site-header .author-info {
        gap: 10px;
        padding: 8px 12px;
    }
    .site-header .author-avatar-image {
        width: 40px;
        height: 40px;
    }
    .site-header .author-text h2,
    .site-header .author-text p {
        font-size: 12px;
    }
    .main-nav {
        justify-content: space-between;
        padding: 6px 8px;
    }
    .main-nav a {
        height: 40px;
        width: 110px;
        font-size: 14px;
    }
    .search-panel {
        padding: 20px;
        gap: 16px;
    }
    .form-group {
        min-width: 160px;
        flex-basis: 100%;
    }
    .button-primary {
        padding: 12px 20px;
        flex-grow: 1;
    }
    .qrcode-image {
        width: 100px;
        height: 100px;
    }
}
@media (max-width: 480px) {
    .site-header {
        padding: 12px 16px;
        gap: 8px;
    }
    .site-title h1 {
        font-size: 24px;
    }
    .header-subtitle {
        display: none;
    }
    .site-header .author-avatar-image {
        width: 32px;
        height: 32px;
    }
    .site-header .author-text h2,
    .site-header .author-text p {
        font-size: 10px;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 8px;
    }
    .main-nav a {
        width: calc(50% - 4px);
        height: 36px;
        font-size: 13px;
    }
    .result-item {
        padding: 16px;
    }
    .result-item h3 {
        font-size: 18px;
    }
    .site-footer-note {
        padding: 20px;
        gap: 20px;
    }
}

/* ------------------ 动画效果 ------------------ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.result-item {
    animation: fadeInUp 0.6s ease-out;
}
.site-header .author-info {
    animation: slideInRight 0.8s ease-out;
}

/* ------------------ 加载状态 ------------------ */
.loading-text,
.no-results-text,
.error-text {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 16px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05) 0%, 
        rgba(169, 35, 34, 0.02) 100%);
    border-radius: var(--border-radius);
    border: 1px dashed var(--divider-color);
}

/* ========== 支付弹窗样式 (最终版) ========== */
.payment-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    z-index: 1001;
}
.payment-modal-overlay.show { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.payment-modal-content {
    background: #fff; padding: 25px 30px; border-radius: 12px;
    width: 90%; max-width: 380px; text-align: center;
    position: relative; transform: scale(0.95);
    transition: transform 0.3s ease;
}
.payment-modal-overlay.show .payment-modal-content { transform: scale(1); }
.modal-close-btn {
    position: absolute; top: 10px; right: 10px; background: none; border: none;
    font-size: 28px; color: #aaa; cursor: pointer; padding: 0; line-height: 1;
}
.payment-modal-content h3 { margin-top: 0; font-size: 22px; color: #333; }
.modal-subtitle { font-size: 15px; color: #666; margin-bottom: 25px; }
.payment-details { display: flex; flex-direction: column; gap: 20px; }
.price-info { background-color: #f9f9f9; border: 1px solid #eee; padding: 15px; border-radius: 8px; }
.price-info .price { display: block; font-size: 30px; font-weight: 900; color: var(--theme-red, #c0392b); }
.price-info .description { font-size: 13px; color: #777; }
.pay-now-btn {
    background-color: #00c250; color: white; border: none; padding: 12px 20px;
    border-radius: 8px; font-size: 18px; font-weight: bold; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background-color 0.2s;
}
.pay-now-btn:hover { background-color: #00a845; }
.pay-now-btn:disabled { background-color: #999; cursor: not-allowed; }
.pay-now-btn img { width: 24px; height: 24px; }
#qrcode-container {
    position: relative; display: inline-block; padding: 10px; background: #fff;
    border-radius: 8px; border: 1px solid #eee; margin: 0 auto 10px;
}
#qrcode { display: flex; justify-content: center; align-items: center; }
#qrcode-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.97); border-radius: 8px;
    display: none; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; font-weight: bold; color: #333;
}
#qrcode-overlay.show { display: flex; }
#qrcode-status-icon { font-size: 40px; line-height: 1; margin-bottom: 10px; }
#qrcode-overlay.success #qrcode-status-icon::before { content: '✅'; color: #00c250; }
#qrcode-overlay.success #qrcode-status-text { color: #00c250; }
#qrcode-overlay.expired #qrcode-status-icon::before { content: '⏳'; }
#qrcode-overlay.expired #qrcode-status-text { color: #ff9800; }
#payment-status-text { min-height: 22px; font-weight: bold; transition: color 0.3s ease; }
#payment-status-text.status-success { color: #00c250; }
#payment-status-text.status-error { color: var(--theme-red, #c0392b); }