/* ============================================================
   多多兔学习工具箱 · 公共样式（清新亮丽风）
   适用：主页 + 所有子页面
   ============================================================ */

/* ----- 全局重置 ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #42a5f5 0%, #bdef34 100%);
    min-height: 100vh;
    font-family: 'Quicksand', 'Microsoft YaHei', sans-serif;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 1280px;
    width: 100%;
}

/* ----- 头部 ----- */
.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    padding: 0.8rem 2rem;
    border-radius: 80px;
    box-shadow: 0 8px 24px rgba(66, 165, 245, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    height: 64px;
    width:auto;
}

.logo-icon {
    font-size: 3rem;
    filter: drop-shadow(0 6px 12px rgba(66, 165, 245, 0.3));
    transition: transform 0.2s;
    cursor: default;
}

.logo-icon:hover {
    transform: rotate(-6deg) scale(1.02);
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0d2b3e;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 0 rgba(179, 229, 252, 0.5);
}

.site-title small {
    font-weight: 400;
    font-size: 1rem;
    color: #1e88e5;
    margin-left: 10px;
    background: rgba(179, 229, 252, 0.6);
    padding: 0.15rem 1rem;
    border-radius: 40px;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-tag {
    background: rgba(66, 165, 245, 0.12);
    padding: 0.4rem 1.2rem;
    border-radius: 60px;
    font-weight: 600;
    color: #0d2b3e;
    border: 1px solid rgba(66, 165, 245, 0.2);
    box-shadow: 0 2px 8px rgba(66, 165, 245, 0.06);
    font-size: 0.95rem;
}

.header-tag i {
    margin-right: 6px;
    color: #42a5f5;
}

/* ----- 面包屑导航 ----- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.6rem 1.5rem;
    border-radius: 60px;
    margin-bottom: 1.8rem;
    border: 2px solid rgba(66, 165, 245, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
    color: #0d2b3e;
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.06);
}

.breadcrumb a {
    color: #1e88e5;
    text-decoration: none;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb a:hover {
    color: #0d2b3e;
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #42a5f5;
    font-size: 0.7rem;
}

.breadcrumb .current {
    color: #0d2b3e;
    font-weight: 700;
}

/* ----- 工具导航 ----- */
.tool-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 60px;
    border: 2px solid rgba(66, 165, 245, 0.15);
    justify-content: center;
    box-shadow: 0 4px 16px rgba(66, 165, 245, 0.08);
    backdrop-filter: blur(2px);
}

.tool-nav a {
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e88e5;
    text-decoration: none;
    background: rgba(66, 165, 245, 0.08);
    border: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.tool-nav a:hover {
    background: rgba(66, 165, 245, 0.15);
    border-color: rgba(66, 165, 245, 0.3);
    transform: translateY(-1px);
}

.tool-nav a.active {
    background: #42a5f5;
    color: white;
    border-color: #1e88e5;
    box-shadow: 0 3px 0 #1e88e5;
}

.tool-nav a i {
    margin-right: 4px;
}

/* ----- 主卡片 ----- */
.main-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 60px 60px 50px 50px;
    padding: 2.5rem 2.8rem;
    box-shadow: 0 20px 40px -8px rgba(66, 165, 245, 0.2), 0 8px 0 0 #42a5f5, 0 0 0 3px rgba(179, 229, 252, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    backdrop-filter: blur(2px);
}

.main-card h1 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0d2b3e;
    margin-bottom: 1.8rem;
}

.main-card h1 i {
    color: #42a5f5;
    margin-right: 10px;
}

/* ----- 配置面板 ----- */
.config-panel {
    background: rgba(225, 245, 254, 0.6);
    padding: 1.8rem 2rem;
    border-radius: 40px;
    border: 2px solid rgba(66, 165, 245, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 6px 0 #42a5f5;
    margin-bottom: 2rem;
}

.config-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    align-items: flex-end;
}

.form-group {
    flex: 1 1 180px;
    min-width: 140px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: #0d2b3e;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 6px;
    color: #42a5f5;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 60px;
    border: 2px solid rgba(66, 165, 245, 0.2);
    background: white;
    font-family: 'Quicksand', 'Microsoft YaHei', sans-serif;
    font-weight: 600;
    color: #0d2b3e;
    font-size: 1rem;
    outline: none;
    transition: 0.15s;
    box-sizing: border-box;
}

.form-group input[type="number"]:focus {
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.2);
}

/* ----- 自定义下拉菜单 ----- */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.custom-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 1rem;
    padding-right: 1rem;
    border-radius: 60px;
    border: 2px solid rgba(66, 165, 245, 0.2);
    background: white;
    font-family: 'Quicksand', 'Microsoft YaHei', sans-serif;
    font-weight: 600;
    color: #0d2b3e;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.15s;
    box-sizing: border-box;
    min-height: 46px;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.custom-select-btn:hover {
    border-color: #42a5f5;
}

.custom-select-btn .arrow {
    color: #42a5f5;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.custom-select-btn .arrow.open {
    transform: rotate(180deg);
}

.custom-select-btn .selected-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border-radius: 20px;
    border: 2px solid rgba(66, 165, 245, 0.2);
    box-shadow: 0 8px 32px rgba(66, 165, 245, 0.15);
    padding: 0.3rem 0;
    list-style: none;
    margin: 0;
    z-index: 100;
    display: none;
    overflow-y: auto;
    box-sizing: border-box;
}

.custom-select-options.open {
    display: block;
}

.custom-select-options li {
    padding: 0.6rem 1.2rem;
    font-family: 'Quicksand', 'Microsoft YaHei', sans-serif;
    font-weight: 600;
    color: #0d2b3e;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-options li:hover {
    background: #cae67fb0;
}

.custom-select-options li.active {
    background: #cae67f;
    color: #0d2b3e;
}

.custom-select-options li:active {
    background: #cae67f;
}

/* ----- 按钮 ----- */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.btn {
    flex: 1 1 auto;
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Quicksand', 'Microsoft YaHei', sans-serif;
    background: rgba(225, 245, 254, 0.6);
    color: #0d2b3e;
    border: 2px solid white;
    box-shadow: 0 5px 0 #42a5f5, 0 4px 12px rgba(66, 165, 245, 0.12);
    transition: 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn i {
    font-size: 1.1rem;
    color: #1e88e5;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #1e88e5, 0 10px 24px rgba(66, 165, 245, 0.2);
    background: rgba(225, 245, 254, 0.8);
}

.btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #1e88e5;
}

.btn-primary {
    background: #42a5f5;
    color: white;
    box-shadow: 0 5px 0 #1e88e5;
}

.btn-primary i {
    color: white;
}

.btn-primary:hover {
    background: #64b5f6;
}

.btn-success {
    background: #66bb6a;
    color: white;
    box-shadow: 0 5px 0 #43a047;
}

.btn-success i {
    color: white;
}

.btn-success:hover {
    background: #81c784;
}

.btn-warning {
    background: #ffd54f;
    box-shadow: 0 5px 0 #f9a825;
}

.btn-warning i {
    color: #f57f17;
}

.btn-warning:hover {
    background: #ffd740;
}

.btn-danger {
    background: #ef5350;
    color: white;
    box-shadow: 0 5px 0 #c62828;
}

.btn-danger i {
    color: white;
}

.btn-danger:hover {
    background: #e57373;
}

/* ----- 题目展示区 ----- */
.questions-container {
    column-count: 2;
    column-gap: 2rem;
    column-rule: 2px dashed rgba(66, 165, 245, 0.25);
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.question-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 40px 12px 12px 40px;
    border: 1px solid rgba(66, 165, 245, 0.12);
    break-inside: avoid;
    page-break-inside: avoid;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0d2b3e;
    box-shadow: 0 2px 8px rgba(66, 165, 245, 0.04);
}

.question-number {
    min-width: 34px;
    font-weight: 700;
    color: #42a5f5;
    margin-right: 6px;
    font-size: 0.95rem;
}

.question-content {
    flex: 1;
    padding: 0 4px;
}

.answer {
    margin-left: 12px;
    padding: 0.1rem 0.8rem;
    background: rgba(66, 165, 245, 0.12);
    border-radius: 40px;
    color: #0d2b3e;
    font-weight: 700;
    font-size: 1rem;
    display: none;
}

.questions-container.show-answer .answer {
    display: inline-block;
}

/* ----- 提示条 ----- */
.tip {
    color: #0d2b3e;
    font-size: 0.95rem;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(225, 245, 254, 0.5);
    border-radius: 40px;
    border-left: 5px solid #42a5f5;
    font-weight: 600;
}

.tip i {
    margin-right: 8px;
    color: #42a5f5;
}

/* ============================================================
   主页专用样式
   ============================================================ */

/* 标语 */
.hero-message {
    text-align: center;
    margin: 1rem 0 2.8rem;
}

.hero-message h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0d2b3e;
    display: block;
    padding: 0.3rem 2.8rem;
    border-radius: 60px;
    margin: 0 auto;
    width: fit-content;
    text-shadow: 0 2px 8px rgba(66, 165, 245, 0.1);
}

.hero-message .sub-title {
    display: block;
    font-size: 1.2rem;
    color: #0d2b3e;
    margin: 1rem auto;
    max-width: 500px;
    min-width: 370px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.3rem 2rem;
    border-radius: 40px;
    border: 2px dashed rgba(66, 165, 245, 0.3);
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    backdrop-filter: blur(2px);
}

.hero-message .sub-title i {
    color: #42a5f5;
    margin-right: 6px;
}

/* 分类标题 */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0d2b3e;
    margin: 2rem 0 1.2rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.section-title .line {
    flex: 1;
    max-width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #42a5f5);
    border-radius: 2px;
}

.section-title .line-right {
    background: linear-gradient(90deg, #42a5f5, transparent);
}

.section-title .emoji {
    font-size: 2rem;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem 1.8rem;
    margin: 1.5rem 0 2.5rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 60px 60px 50px 50px;
    padding: 2rem 1.5rem 2.2rem;
    box-shadow: 0 20px 40px -8px rgba(66, 165, 245, 0.15), 0 8px 0 0 #42a5f58c, 0 0 0 3px rgba(179, 229, 252, 0.3);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 32px 48px -12px rgba(66, 165, 245, 0.25), 0 8px 0 0 #1e88e5, 0 0 0 4px rgba(66, 165, 245, 0.2);
}

.tool-card:active {
    transform: scale(0.97);
    box-shadow: 0 10px 20px -6px rgba(66, 165, 245, 0.2);
}

.tool-card .coming-badge {
    position: absolute;
    top: 16px;
    right: 27px;
    background: #ff8a65;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    border: 2px solid white;
    box-shadow: 0 3px 0 #e64a19;
    letter-spacing: 0.5px;
}

.tool-card:not(.coming-soon) {
    cursor: pointer;
}

.tool-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.tool-card.coming-soon .card-icon {
    filter: grayscale(0.3);
}

.tool-card.coming-soon .card-click-hint {
    background: rgba(200, 200, 200, 0.4);
    color: #999;
}

.card-icon {
    font-size: 3.1rem;
    background: linear-gradient(145deg, rgba(225, 245, 254, 0.6), rgba(179, 229, 252, 0.4));
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border: 4px solid white;
    box-shadow: 0 6px 0 #42a5f5, 0 10px 20px rgba(66, 165, 245, 0.15);
    transition: 0.2s;
    color: #0d2b3e;
}

.tool-card:hover .card-icon {
    background: linear-gradient(145deg, rgba(179, 229, 252, 0.6), rgba(66, 165, 245, 0.15));
    transform: rotate(4deg) scale(1.03);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0d2b3e;
    margin-bottom: 0.3rem;
    letter-spacing: -0.3px;
}

.card-desc {
    font-size: 0.95rem;
    color: #1e88e5;
    background: rgba(225, 245, 254, 0.4);
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    border: 1px solid rgba(66, 165, 245, 0.15);
    margin-top: 4px;
}

.card-emoji-deco {
    font-size: 1.6rem;
    margin-top: 10px;
    opacity: 0.6;
    filter: drop-shadow(0 2px 4px rgba(66, 165, 245, 0.2));
}

.card-click-hint {
    margin-top: 1.2rem;
    background: rgba(66, 165, 245, 0.08);
    padding: 0.15rem 1.2rem;
    border-radius: 60px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d2b3e;
    border: 1px solid rgba(66, 165, 245, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: inset 0 0 0 1px white;
}

/* 装饰 */
.footprint-deco {
    font-size: 2.2rem;
    letter-spacing: 8px;
    opacity: 0.2;
    margin: 0.5rem 0;
    user-select: none;
}

.divider-deco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0 0.5rem;
    opacity: 0.3;
    font-size: 1.2rem;
    color: #42a5f5;
}

.divider-deco .line-deco {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #42a5f5);
}

.divider-deco .line-deco-right {
    background: linear-gradient(90deg, #42a5f5, transparent);
}

/* ----- 打赏模块 ----- */
.donation-section {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 120px 120px 80px 80px;
    padding: 1.8rem 2.5rem;
    margin: 2.5rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3.5rem;
    border: 3px solid rgba(66, 165, 245, 0.15);
    box-shadow: 0 10px 0 #42a5f5, 0 12px 32px rgba(66, 165, 245, 0.12);
    backdrop-filter: blur(2px);
}

.donation-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.donation-text i {
    font-size: 2.8rem;
    color: #42a5f5;
    filter: drop-shadow(0 4px 8px rgba(66, 165, 245, 0.2));
}

.donation-text span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d2b3e;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.15rem 1.2rem;
    border-radius: 60px;
    border: 1px solid rgba(66, 165, 245, 0.15);
}

.donation-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.donation-btn {
    background: white;
    border: none;
    padding: 0.5rem 1.0rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.9rem;
    color: #0d2b3e;
    border: 2px solid #42a5f5;
    box-shadow: 0 5px 0 #1e88e5, 0 4px 16px rgba(66, 165, 245, 0.1);
    transition: 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Quicksand', 'Microsoft YaHei', sans-serif;
}

.donation-btn i {
    font-size: 1.5rem;
    color: #42a5f5;
}

.donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #1e88e5, 0 12px 28px rgba(66, 165, 245, 0.2);
    background: rgba(225, 245, 254, 0.3);
}

.donation-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #1e88e5;
}

.donation-qr-hint {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 60px;
    padding: 0.2rem 1.2rem;
    font-weight: 600;
    color: #0d2b3e;
    border: 1px solid rgba(66, 165, 245, 0.15);
    font-size: 0.95rem;
}

.donation-qr-hint i {
    margin-right: 6px;
    color: #42a5f5;
}

/* ----- 页脚 ----- */
.footer {
    margin-top: 3rem;
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 80px;
    border: 1px solid rgba(66, 165, 245, 0.12);
    backdrop-filter: blur(2px);
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.footer-main {
    font-weight: 700;
    color: #0d2b3e;
    font-size: 1rem;
}

.footer-legal {
    font-weight: 500;
    color: #1e88e5;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.footer-legal a {
    color: #1e88e5;
    text-decoration: none;
    border-bottom: 1px dotted rgba(66, 165, 245, 0.2);
}

.footer-legal a:hover {
    color: #0d2b3e;
    border-bottom: 1px solid #42a5f5;
}

.footer i {
    color: #42a5f5;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.8rem;
    }

    .header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        border-radius: 40px;
        padding: 1rem 1.5rem;
    }

    .site-title {
        font-size: 1.6rem;
    }

    .site-title small {
        font-size: 0.75rem;
        margin-left: 4px;
    }

    .header-right {
        justify-content: center;
        gap: 0.8rem;
    }

    .header-tag {
        font-size: 0.8rem;
        padding: 0.25rem 0.8rem;
    }

    .main-card {
        padding: 1.5rem;
        border-radius: 40px;
    }

    .main-card h1 {
        font-size: 1.6rem;
    }

    .questions-container {
        column-count: 1;
        column-rule: none;
    }

    .config-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .config-row .form-group {
        flex: 1 1 auto;
        min-width: unset;
        width: 100%;
    }

    .config-row .form-group:last-child {
        flex: 1 1 auto;
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }

    .btn-group .btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 1rem;
    }

    .question-item {
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
        border-radius: 30px 10px 10px 30px;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        gap: 0.3rem 0.6rem;
    }

    .tool-nav {
        padding: 0.6rem 0.8rem;
        gap: 0.4rem;
        border-radius: 40px;
    }

    .tool-nav a {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .custom-select-btn {
        font-size: 1rem;
        padding: 0.6rem 1rem;
        min-height: 48px;
    }

    .custom-select-options {
        /*position: fixed;*/
        top: auto;
        /*bottom: 0;*/
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px;
        max-height: 50vh;
        border-bottom: none;
        border-left: none;
        border-right: none;
        box-shadow: 0 -4px 32px rgba(66, 165, 245, 0.15);
        padding: 0.5rem 0;
    }

    .custom-select-options li {
        padding: 0.8rem 1.5rem;
        font-size: 1.05rem;
        text-align: center;
    }

    .hero-message h2 {
        font-size: 1.5rem;
        padding: 0.2rem 1.5rem;
    }

    .hero-message .sub-title {
        font-size: 1rem;
        padding: 0.2rem 1.2rem;
        min-width: auto;
        max-width: 100%;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .card-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .tool-card {
        padding: 1.5rem 1.2rem;
        border-radius: 40px 40px 35px 35px;
    }

    .card-icon {
        width: 80px;
        height: 80px;
        font-size: 2.7rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .donation-section {
        flex-direction: column;
        gap: 1rem;
        border-radius: 60px;
        padding: 1.5rem 1rem;
    }

    .donation-text span {
        font-size: 1.2rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.2rem;
    }

    .tool-card .coming-badge {
        font-size: 0.9rem;
        padding: 0.1rem 0.6rem;
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 430px) {
    .hero-message h2 {
        font-size: 1.3rem;
        padding: 0.2rem 1rem;
    }

    .hero-message .sub-title {
        font-size: 0.9rem;
        min-width: auto;
        padding: 0.2rem 1rem;
    }

    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 2.8rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-desc {
        font-size: 0.8rem;
        padding: 0.1rem 0.8rem;
    }

    .donation-text span {
        font-size: 1rem;
    }

    .donation-btn {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .section-title .line {
        max-width: 30px;
    }

    .main-card h1 {
        font-size: 1.2rem;
    }

    .question-item {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }

    .answer {
        margin-left: 34px;
        margin-top: 2px;
    }

    .header-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    .tool-nav a {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .custom-select-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
        min-height: 42px;
    }

    .custom-select-options li {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    .btn-group .btn {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .footer-main {
        font-size: 0.9rem;
    }
}

/* ============================================================
   打印样式
   ============================================================ */
@media print {
    body {
        background: white;
        padding: 0.5in;
    }

    .header,
    .config-panel,
    .btn-group,
    .footer,
    .tip,
    .breadcrumb,
    .tool-nav,
    .donation-section,
    .footprint-deco,
    .divider-deco,
    .card-click-hint {
        display: none !important;
    }

    .main-card {
        box-shadow: none;
        border: none;
        padding: 0;
        background: white;
        border-radius: 0;
    }

    .questions-container {
        column-count: 2;
        column-gap: 1.5rem;
        column-rule: 1px solid #ccc;
        margin-top: 0;
    }

    .question-item {
        background: white;
        border: none;
        border-bottom: 1px dashed #ddd;
        border-radius: 0;
        box-shadow: none;
        padding: 0.3rem 0.2rem;
    }

    .answer {
        display: none !important;
    }

    .main-card h1 {
        font-size: 1.8rem;
        color: #333;
    }

    .tool-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .tool-card.coming-soon {
        opacity: 1;
    }

    .tool-card .coming-badge {
        display: none;
    }

    .hero-message h2 {
        font-size: 1.8rem;
        background: none;
        box-shadow: none;
        border: none;
        padding: 0.2rem 0;
        color: #333;
    }

    .hero-message .sub-title {
        border: 1px solid #ddd;
        background: #f9f9f9;
    }
}