/* === 全局样式和变量 === */
:root {
    --primary-color: #2a62ff;
    --secondary-color: #5a6474;
    --light-bg: #f7f9fc;
    --border-color: #e4e7eb;
    --white: #ffffff;
    --text-color: #212529;
    --container-width: 1024px;
    --border-radius: 12px;
    --shadow: 0 8px 24px rgba(42, 98, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* === 页头导航 === */
header {
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

header nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    grid-column: 2 / 3;
    justify-self: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

header ul.nav-left {
    grid-column: 1 / 2;
    justify-self: start;
}

header ul.nav-right {
    grid-column: 3 / 4;
    justify-self: end;
}

header a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

header a:hover {
    color: var(--primary-color);
}

header a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* === 核心介绍区 === */
#hero {
    padding: 6rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

#hero .hero-text {
    text-align: left;
}

#hero .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #e7f3ff;
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

#hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

#hero h1 .highlight {
    color: var(--primary-color);
}

#hero .subtitle {
    font-size: 1.2rem;
    max-width: 500px;
    margin: 0 0 2rem 0;
    color: var(--secondary-color);
}

#hero .hero-visual {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #f7f9fc 0%, #eef4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .hero-visual::before,
#hero .hero-visual::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
}

#hero .hero-visual::before {
    width: 250px;
    height: 250px;
    background-color: var(--primary-color);
    top: -50px;
    right: -80px;
}

#hero .hero-visual::after {
    width: 300px;
    height: 300px;
    background-color: #ffc107;
    bottom: -100px;
    left: -60px;
}


/* === 行动号召按钮 === */
#cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 1.1rem;
}

.button.primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(42, 98, 255, 0.2);
}

.button.secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--border-color);
}

.button.secondary:hover {
    background-color: var(--light-bg);
    border-color: var(--secondary-color);
    color: var(--text-color);
}

.button.danger {
    background-color: #dc3545;
    color: var(--white);
}

.button.danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

/* === 特性介绍区 === */
#features {
    padding-top: 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-title h3 {
    font-size: 2rem;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 500px;
    margin: 0 auto;
}

/* 测评版本对比卡片 */
.version-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

.version-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.version-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(42, 98, 255, 0.15);
    border-color: var(--primary-color);
}

.version-card.recommended {
    border-color: var(--primary-color);
    position: relative;
}

.recommend-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
}

.card-header h4 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.card-header p {
    color: var(--secondary-color);
    margin: 0;
    min-height: 40px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.features-list li {
    padding-left: 1.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23198754'%3e%3cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 1rem;
    margin-bottom: 0.8rem;
}

.card-info {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.card-info span {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.card-info strong {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.button.full-width {
    display: block;
    text-align: center;
}

/* 科学基础简介 */
.scientific-basis {
    margin-bottom: 5rem;
}

.basis-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.basis-card {
    background-color: var(--light-bg);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.basis-card h5 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.basis-card p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
}

/* 隐私保护承诺 */
.privacy-section {
    background-color: #0c1444;
    color: var(--white);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
}

.privacy-section h3 {
    font-size: 2rem;
    font-weight: 700;
}

.privacy-section p {
    max-width: 500px;
    margin: 1rem auto 2rem auto;
    opacity: 0.8;
}

.privacy-points {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.privacy-points span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.privacy-icon svg {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* === 广告位 === */
#ads {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ad-button {
    border-color: #ffc107;
    color: #fd7e14;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.ad-button:hover {
    background-color: #fff8e1;
    border-color: #fd7e14;
}

/* === 通用弹窗 (Modal) 样式 === */
#ad-modal, #share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ad-modal .modal-overlay, #share-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

#ad-modal .modal-content, #share-modal .modal-content {
    position: relative;
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    max-width: 80vw;
    max-height: 80vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

#ad-modal img {
    display: block;
    max-width: 100%;
    max-height: calc(80vh - 40px);
    object-fit: contain;
}

#ad-modal .modal-close, #share-modal .modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* === 页脚 === */
footer {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem 0;
}

/* === 通用内页页头样式 === */
.page-header {
    text-align: center;
    padding: 4rem 0;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* === 使用指南页面 === */
.guide-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.guide-block {
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.guide-block h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.guide-block ul, .guide-block ol {
    padding-left: 20px;
}

.guide-block li {
    margin-bottom: 1rem;
}

.quick-start-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.process-steps li::marker {
    font-weight: bold;
    color: var(--primary-color);
}

.guide-block.warning {
    background-color: #fff9e6;
    border: 1px solid #ffecb3;
    border-left: 5px solid #ffc107;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.guide-cta {
    text-align: center;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* === 科学依据页面 === */
.science-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.science-block {
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
}

.science-block h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.theory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: justify;
}

.theory-grid h4 {
    margin-top: 0;
}

.scale-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scale-item {
    background-color: var(--light-bg);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.scale-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    text-align: right;
}

.validity-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-size: 1rem;
}

.validity-table th, .validity-table td {
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    text-align: left;
}

.validity-table th {
    background-color: var(--light-bg);
    font-weight: bold;
}

.validity-table tbody tr:nth-child(even) {
    background-color: var(--light-bg);
}

.validity-table td:first-child {
    font-weight: 500;
}

/* === 历史记录页面 === */
.history-content {
    max-width: 900px;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-card {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.summary-card .label {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.summary-card strong {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.data-management {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.no-records {
    text-align: center;
    padding: 4rem 0;
}

.no-records p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* === 测试流程页面 === */
.quiz-page-bg {
    background-color: var(--light-bg);
}

.quiz-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.quiz-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#quiz-container {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.quiz-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.quiz-card h2 {
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.quiz-card .subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
}

/* 知情同意书 */
.consent-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.consent-item label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
}

.consent-item input[type="checkbox"] {
    margin-top: 5px;
    width: 1.2em;
    height: 1.2em;
}

.consent-warning {
    background-color: #fff9e6;
    color: #664d03;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #ffecb5;
}

/* 基本信息表单 */
#demographics-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: #dc3545;
}

.form-group select {
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    background-color: var(--light-bg);
}

.form-group-privacy {
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

/* 问卷答题界面 */
#quiz-progress-stats {
    grid-template-columns: repeat(3, 1fr);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}
.scale-card {
    margin-bottom: 2rem;
}
.scale-card h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}
.question-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.question-card.answered {
    background-color: #f7f9fc;
    border-left: 4px solid var(--primary-color);
}
.question-text {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}
.options-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}
.option-label {
    cursor: pointer;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.2s ease;
}
.option-label input {
    display: none;
}
.option-label:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
}
.option-label input:checked + span {
    font-weight: bold;
}

.option-label:has(input:checked) {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.teen-badge {
    display: inline-block;
    background-color: #198754;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-left: 0.8rem;
    vertical-align: middle;
}

/* 导航按钮 */
.quiz-nav {
    margin-top: 2.5rem;
    text-align: center;
}

.quiz-nav .button[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* === 报告页面 === */
#report-container {
    padding-top: 3rem;
    padding-bottom: 5rem;
}
.report-card { max-width: 800px; margin: 0 auto; background-color: var(--white); border-radius: var(--border-radius); padding: 3rem; box-shadow: var(--shadow); }
.report-header { text-align: center; margin-bottom: 3rem; }
.score-display .score-title { font-size: 1.2rem; color: var(--secondary-color); }
.score-display .score-value { font-size: 5rem; font-weight: 800; color: var(--primary-color); line-height: 1; margin: 0.5rem 0; }
.score-display .score-level { display: inline-block; font-size: 1.2rem; font-weight: bold; padding: 0.5rem 1.5rem; border-radius: 50px; }
.score-level.level-high { background-color: #f8d7da; color: #842029; }
.score-level.level-mid-high { background-color: #fff3cd; color: #664d03; }
.score-level.level-medium { background-color: #cff4fc; color: #055160; }
.score-bar-container { background-color: var(--light-bg); border-radius: 50px; height: 10px; margin: 2rem 0 0.5rem 0; overflow: hidden; }
.score-bar { background-color: var(--primary-color); height: 100%; border-radius: 50px; }
.score-bar-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--secondary-color); }

.report-block { margin-bottom: 3rem; }
.report-block h3 { font-size: 1.5rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.8rem; margin-bottom: 1.5rem; }
.report-block ul { list-style: none; padding-left: 0; }
.report-block ul li { padding-left: 1.5rem; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23198754'%3e%3cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: left 0.2rem; background-size: 1rem; margin-bottom: 0.8rem; }

.dimension-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dimension-item .dimension-label { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.dimension-bar-container { background-color: var(--light-bg); border-radius: 50px; height: 8px; }
.dimension-bar { background-color: var(--secondary-color); height: 100%; border-radius: 50px; }
.info-footer { background-color: var(--light-bg); padding: 1.5rem; border-radius: var(--border-radius); font-size: 0.9rem; color: var(--secondary-color); }
.info-footer p { margin: 0.5rem 0; }
.report-nav { text-align: center; margin-top: 3rem; display: flex; justify-content: center; gap: 1rem; }

/* 【BUG修复】强制报告页底部按钮内的文字不换行，解决竖排问题 */
.report-nav .button {
    white-space: nowrap;
}

/* === 响应式设计 === */
@media (max-width: 992px) {
    .basis-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    header nav {
        grid-template-columns: 1fr;
        text-align: center;
    }
    header ul {
        justify-content: center;
        margin-top: 0.5rem;
    }
    .logo {
        margin-bottom: 0.5rem;
    }
    header ul.nav-left, header ul.nav-right {
        grid-column: auto;
        justify-self: center;
    }
    #hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 0;
    }
    #hero .hero-text {
        text-align: center;
    }
    #hero .hero-visual {
        display: none;
    }
    #cta-buttons {
        align-items: center;
    }
    #hero h1 {
        font-size: 2.8rem;
    }
    #hero .subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .section-title h2 {
        font-size: 2.2rem;
    }
    .version-cards {
        grid-template-columns: 1fr;
    }
    .basis-cards {
        grid-template-columns: 1fr;
    }
    .quick-start-grid {
        grid-template-columns: 1fr;
    }
    .theory-grid {
        grid-template-columns: 1fr;
    }
    .summary-cards {
        grid-template-columns: 1fr 1fr;
    }
    .options-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .dimension-grid {
        grid-template-columns: 1fr;
    }
    .quiz-card, .report-card { padding: 1.5rem; }
}

@media (max-width: 576px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
}

/* === 自定义广告按钮样式 === */
.ad-button.ad-male {
    background-color: #e9f2ff;
    border-color: #a3c7ff;
    color: #0052cc;
}
.ad-button.ad-male:hover {
    background-color: #dcebff;
    border-color: #0052cc;
}
.ad-button.ad-female {
    background-color: #ffe9f2;
    border-color: #ffaccf;
    color: #de350b;
}
.ad-button.ad-female:hover {
    background-color: #ffdce9;
    border-color: #de350b;
}
.ad-button.ad-donate {
    background-color: #fff4e6;
    border-color: #ffc400;
    color: #974f0c;
}
.ad-button.ad-donate:hover {
    background-color: #ffeacc;
    border-color: #974f0c;
}

/* === 分享弹窗样式 === */
#share-modal .modal-content {
    text-align: center;
}
#share-modal h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
#share-modal .share-link-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1rem;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
    user-select: all;
}
#share-modal .copy-btn {
    width: 100%;
    padding: 0.8rem 1rem;
}
#share-modal .copy-btn.copied {
    background-color: #198754;
    cursor: default;
}