/*
 * Pastel 模板 - 柔和粉彩风
 *
 * 设计语言：
 * - 粉彩渐变 + 大圆角
 * - 毛玻璃卡片 + 柔和阴影
 * - 圆体/手写风字体点缀
 * - 顶部彩虹彩条装饰
 */

:root {
    --sakura: #f9c5d1;
    --lavender: #d5c6e0;
    --mint: #b8e0d2;
    --sky: #b8d8f0;
    --peach: #fde2d3;
    --butter: #fff3c8;
    --text-main: #4a3f52;
    --text-soft: #7a6f82;
    --text-mute: #a89db2;
    --bg: #fdf8fc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border: #e8dce8;
    --sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--sans);
    background: linear-gradient(135deg, var(--bg) 0%, #fdf2f8 30%, #f0f4ff 60%, #f5fdf9 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== Candy Bar (顶部彩条) ========== */
.candy-bar {
    display: flex;
    height: 4px;
    position: sticky;
    top: 0;
    z-index: 200;
}
.candy-bar .candy { flex: 1; }
.candy-sakura { background: var(--sakura); }
.candy-peach  { background: var(--peach); }
.candy-butter { background: var(--butter); }
.candy-mint   { background: var(--mint); }
.candy-sky    { background: var(--sky); }
.candy-lavender { background: var(--lavender); }

/* ========== Header (圆角胶囊风) ========== */
.header-pastel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px) saturate(120%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 4px;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* Logo 胶囊 */
.brand-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--sakura), var(--lavender));
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(232, 141, 172, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.brand-pill:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 20px rgba(232, 141, 172, 0.3);
}
.pill-icon { font-size: 1.3em; }
.pill-text {
    font-size: 1.15em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

/* 导航药丸 */
.nav-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-pills a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.9em;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid transparent;
    transition: all 0.25s;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.25s;
}
.nav-pills a:hover {
    color: var(--text-main);
    border-color: var(--lavender);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(200, 180, 220, 0.2);
}
.nav-pills a:hover .nav-dot { background: var(--lavender); }

.nav-pills a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--sakura), var(--lavender));
    border-color: transparent;
    box-shadow: 0 3px 14px rgba(232, 141, 172, 0.3);
}
.nav-pills a.active .nav-dot { background: #fff; }

/* ========== Main ========== */
.main-bliss {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    width: 100%;
}

/* ========== Converter ========== */
.converter-box {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 32px 28px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(180, 160, 190, 0.12);
}

.converter-title {
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.converter-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.converter-field { flex: 1; min-width: 140px; }
.converter-field label {
    display: block;
    font-size: 0.78em;
    font-weight: 600;
    color: var(--text-mute);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.converter-field input,
.converter-field select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    font-size: 1em;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.2s;
}
.converter-field input:focus,
.converter-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 197, 209, 0.25);
}
.converter-field input {
    font-size: 1.3em;
    font-weight: 700;
    text-align: right;
}

.swap-btn {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--lavender);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-soft);
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-bottom: 2px;
}
.swap-btn:hover {
    background: linear-gradient(135deg, var(--sakura), var(--lavender));
    color: #fff;
    transform: rotate(180deg);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(232, 141, 172, 0.3);
}

.rate-display {
    text-align: center;
    margin-top: 22px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(249, 197, 209, 0.15), rgba(213, 198, 224, 0.15));
    border-radius: 16px;
}
.rate-display .rate-value {
    font-size: 1.35em;
    font-weight: 700;
    color: var(--text-main);
}
.rate-display .rate-label {
    font-size: 0.78em;
    color: var(--text-mute);
    margin-top: 4px;
}

.result-box {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(184, 224, 210, 0.2), rgba(184, 216, 240, 0.2));
    border: 1.5px solid var(--mint);
    border-radius: 20px;
    display: none;
    box-shadow: 0 4px 16px rgba(184, 224, 210, 0.15);
}
.result-box.show { display: block; }
.result-box .result-value {
    font-size: 1.9em;
    font-weight: 700;
    color: var(--text-main);
}
.result-box .result-detail {
    font-size: 0.85em;
    color: var(--text-soft);
    margin-top: 8px;
}

/* ========== Card (毛玻璃卡片) ========== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(180, 160, 190, 0.08);
}
.card-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--border);
}
.card h1, .card h2 {
    color: var(--text-main);
    margin-bottom: 8px;
}
.card p { color: var(--text-soft); }

/* ========== Breadcrumb ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88em;
    color: var(--text-mute);
    margin-bottom: 16px;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ========== Pairs Grid ========== */
.pairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.pair-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s;
}
.pair-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--lavender);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 180, 220, 0.2);
}
.pair-info { display: flex; flex-direction: column; gap: 2px; }
.pair-name { font-weight: 600; font-size: 0.95em; }
.pair-code { font-size: 0.75em; color: var(--text-mute); }
.pair-rate {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--primary);
}
.pair-change { font-size: 0.78em; }
.pair-change.up { color: #4caf50; }
.pair-change.down { color: #e57373; }

/* ========== Search ========== */
.search-box { position: relative; margin-bottom: 20px; }
.search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    font-size: 0.95em;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.2s;
}
.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 197, 209, 0.2);
}
.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-mute);
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}
.pagination a, .pagination span {
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.88em;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.5);
}
.pagination a:hover {
    border-color: var(--lavender);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
}
.pagination .current {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: #fff;
    border-color: transparent;
    font-weight: 600;
}

/* ========== SEO Bliss Content ========== */
.bliss-content { margin-top: 40px; }
.bliss-card {
    padding: 24px 28px;
    margin-bottom: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(180, 160, 190, 0.08);
}
.bliss-card h2 {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}
.bliss-card p {
    color: var(--text-soft);
    line-height: 1.85;
    font-size: 0.95em;
}
.bliss-sakura {
    background: rgba(249, 197, 209, 0.15);
    border: 1.5px solid var(--sakura);
}
.bliss-mint {
    background: rgba(184, 224, 210, 0.15);
    border: 1.5px solid var(--mint);
}
.bliss-sky {
    background: rgba(184, 216, 240, 0.15);
    border: 1.5px solid var(--sky);
}
.bliss-lavender {
    background: rgba(213, 198, 224, 0.15);
    border: 1.5px solid var(--lavender);
}

/* ========== Footer ========== */
.footer-bliss {
    background: linear-gradient(135deg, var(--sakura), var(--lavender), var(--sky));
    position: relative;
    overflow: hidden;
}
.footer-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.footer-clouds .cloud {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}
.footer-clouds .cloud:nth-child(1) {
    width: 120px; height: 120px;
    top: -30px; left: 10%;
}
.footer-clouds .cloud:nth-child(2) {
    width: 80px; height: 80px;
    top: -10px; right: 20%;
}
.footer-clouds .cloud:nth-child(3) {
    width: 60px; height: 60px;
    bottom: 10px; left: 40%;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}
.footer-row a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.footer-row a:hover { opacity: 0.8; }
.footer-star { color: rgba(255, 255, 255, 0.5); font-size: 0.7em; }
.footer-tagline {
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}
.footer-cute {
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== Tables ========== */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--border);
}
th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9em;
}
th {
    background: linear-gradient(135deg, var(--sakura), var(--lavender));
    color: #fff;
    font-weight: 600;
    font-size: 0.8em;
    letter-spacing: 0.03em;
}
tr:hover { background: rgba(249, 197, 209, 0.08); }

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-soft);
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.2s;
}
.btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(180, 160, 190, 0.2);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: #fff;
    border-color: transparent;
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(232, 141, 172, 0.35); }
.btn-success { color: #4caf50; border-color: #c8e6c9; }
.btn-success:hover { background: #e8f5e9; }
.btn-danger { color: #e57373; border-color: #ffcdd2; }
.btn-danger:hover { background: #ffebee; }
.btn-outline { background: transparent; }
.btn-sm { padding: 6px 14px; font-size: 0.8em; }

/* ========== Badges ========== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75em;
    font-weight: 600;
}
.badge-active { background: #e8f5e9; color: #2e7d32; }
.badge-inactive { background: #ffebee; color: #c62828; }

/* ========== Forms ========== */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.85em;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.95em;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 197, 209, 0.2);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ========== Alerts ========== */
.alert { padding: 14px 18px; border-radius: 16px; margin-bottom: 16px; font-size: 0.9em; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-danger { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-info { background: rgba(213, 198, 224, 0.2); color: var(--text-soft); border: 1px solid var(--lavender); }

/* ========== Tabs ========== */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1.5px solid var(--border);
}
.tabs a {
    padding: 10px 22px;
    text-decoration: none;
    color: var(--text-mute);
    font-weight: 500;
    margin-bottom: -1.5px;
    border-bottom: 2px solid transparent;
    border-radius: 12px 12px 0 0;
    transition: all 0.2s;
}
.tabs a:hover { color: var(--text-soft); }
.tabs a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(232, 141, 172, 0.06);
}

/* ========== Spinner ========== */
.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2.5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Utils ========== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { display: flex; gap: 8px; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 10px; }
    .nav-pills { justify-content: center; }
    .converter-row { flex-direction: column; }
    .converter-field { min-width: 100%; }
    .main-bliss { padding: 24px 16px 40px; }
    .converter-box { padding: 24px 18px; border-radius: 20px; }
    .pairs-grid { grid-template-columns: 1fr; }
    .bliss-card { padding: 18px 20px; }
    .result-box .result-value { font-size: 1.4em; }
}
