/* ===== 喜家德 · 橙色暖风 ===== */
:root {
    --brand-color: #E88A2A;
    --brand-dark: #D17A1A;
    --brand-light: #F5A623;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--brand-color);
}
.brand-logo { height: 44px; width: auto; }
.brand-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-color);
    margin: 0;
}

/* ===== 标签页 ===== */
.tab-nav {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e8edf2;
}
.tab-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6a8a9e;
    cursor: pointer;
    border-radius: 30px 30px 0 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.tab-btn:hover { color: #0a1e2b; background: #f0f4f8; }
.tab-btn.active {
    color: var(--brand-color);
    border-bottom-color: var(--brand-color);
    background: rgba(232, 138, 42, 0.06);
}
.tab-content { display: none; animation: fadeIn 0.25s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0.5; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 计算器 ===== */
.subhead {
    font-size: 0.95rem;
    color: #3a5a6e;
    border-left: 4px solid var(--brand-color);
    padding-left: 1rem;
    margin-bottom: 1.8rem;
    background: rgba(232, 138, 42, 0.06);
    border-radius: 0 12px 12px 0;
    line-height: 1.5;
}
.subhead strong { color: #0b3b4f; }

.input-area { display: flex; flex-direction: column; gap: 0.6rem; }
.input-row {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    padding: 0.2rem 0.2rem 0.2rem 1.8rem;
    border: 2px solid #e8edf2;
    transition: border 0.2s, box-shadow 0.2s;
}
.input-row:focus-within {
    border-color: var(--brand-color);
    box-shadow: 0 8px 20px -8px var(--brand-color), 0 0 0 3px rgba(232, 138, 42, 0.15);
}
.currency {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1e4a60;
    margin-right: 0.5rem;
}
#amountInput {
    border: none;
    padding: 1rem 0.8rem 1rem 0.2rem;
    font-size: 1.4rem;
    font-weight: 500;
    width: 100%;
    background: transparent;
    outline: none;
    color: #0a1e2b;
}
#amountInput::placeholder { color: #b0c8d6; font-weight: 400; font-size: 1.2rem; }

#calcBtn {
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1.8rem;
    border-radius: 60px;
    cursor: pointer;
    background: var(--brand-color);
    border: 1px solid var(--brand-dark);
    margin-left: auto;
    flex-shrink: 0;
}
#calcBtn:hover { background: var(--brand-dark); transform: scale(0.97); }

.paste-row { margin-top: 0.2rem; }
#pasteBtn {
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1.8rem;
    border-radius: 60px;
    cursor: pointer;
    background: #4b6f85;
    border: 1px solid #3d5d70;
    width: 100%;
}
#pasteBtn:hover { background: #3a5d72; transform: scale(0.97); }

.result-panel {
    margin-top: 1.8rem;
    background: #ffffffd9;
    backdrop-filter: blur(4px);
    border-radius: 36px;
    padding: 1.6rem 1.8rem 1.8rem;
    border: 1px solid #ffffffaa;
}
.discount-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    background: rgba(232, 138, 42, 0.12);
    color: var(--brand-dark);
    border: 1px solid rgba(232, 138, 42, 0.3);
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #d7e2ec;
}
.price-row:last-of-type { border-bottom: none; }
.label { color: #2a4d61; font-weight: 450; font-size: 1rem; }
.value { font-weight: 600; font-size: 1.2rem; color: #08212e; }

.final-row {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 2px solid #bbd4e3;
}
.final-row .label { font-weight: 600; font-size: 1.2rem; color: #0a293b; }
.final-row .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-color);
}

.copy-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    color: #1d6b48;
    background: #d4eee4;
    border: 1px solid #9acdbc;
}
.copy-status.show { opacity: 1; }

.notice {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #4c6f83;
    background: #e4eef5;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    border: 1px solid #cbdce8;
}
.notice span {
    background: rgba(232, 138, 42, 0.15);
    padding: 0.1rem 0.6rem;
    border-radius: 30px;
    font-weight: 600;
    color: var(--brand-dark);
}

/* ===== 设置面板 ===== */
.settings-panel h3 {
    font-size: 1.2rem;
    color: #0a1e2b;
    margin-top: 0;
    margin-bottom: 0.3rem;
}
.settings-desc {
    font-size: 0.9rem;
    color: #4c6f83;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}
.settings-desc code {
    background: #e8edf2;
    padding: 0.1rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--brand-dark);
    font-size: 0.85rem;
}
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.settings-group label {
    font-weight: 600;
    color: #0a293b;
    font-size: 0.95rem;
}
.settings-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    border: 2px solid #e8edf2;
    background: white;
    font-size: 0.95rem;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    font-family: inherit;
    color: #0a1e2b;
    min-height: 160px;
}
.settings-group textarea:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(232, 138, 42, 0.12);
}
.settings-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.settings-actions button {
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.6rem;
    border-radius: 40px;
    cursor: pointer;
}
.btn-primary {
    background: var(--brand-color);
    color: white;
    border: 1px solid var(--brand-dark);
}
.btn-primary:hover { background: var(--brand-dark); transform: scale(0.97); }
.btn-secondary {
    background: #e8edf2;
    color: #2a4d61;
    border: 1px solid #d5dde5;
}
.btn-secondary:hover { background: #d5dde5; transform: scale(0.97); }
.settings-status {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.settings-status.show { opacity: 1; }
.settings-status.success { background: #d4eee4; color: #1d6b48; }
.settings-status.error { background: #fde8e8; color: #c0392b; }
.settings-hint {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #8aa8b8;
    background: #f4f7fa;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
}

.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d6b48;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
}
.toast-message.show { opacity: 1; }

@media (max-width: 550px) {
    .brand-header { flex-wrap: wrap; }
    .brand-logo { height: 36px; }
    .brand-header h1 { font-size: 1.3rem; }
    .tab-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .currency { display: none; }
    #amountInput { font-size: 1.6rem; }
    #calcBtn { padding: 0.85rem 1.2rem; }
    .settings-actions { flex-direction: column; }
    .settings-actions button { width: 100%; }
}