/* 个人所得税计算器 - 橙色主题（完全匹配原站 shanxi.gvyun.com） */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
    background: #FFF8F0;  /* 浅米色背景 */
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ====== 头部导航栏（橙色背景）====== */
.top-nav {
    background: linear-gradient(135deg, #E65100 0%, #BF360C 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(191, 54, 12, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.nav-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* ====== Hero标题区（橙色背景）====== */
.hero-section {
    background: linear-gradient(135deg, #E65100 0%, #BF360C 100%);
    text-align: center;
    padding: 50px 20px;
    color: white;
}

.hero-section h1 {
    font-size: 34px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-section h1 .hero-icon {
    font-size: 36px;
    margin-right: 10px;
    vertical-align: middle;
}

.hero-section p {
    font-size: 16px;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ====== 内容卡片通用样式 ====== */
.card {
    background: white;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 2px solid #FFE0B2; /* 浅橙色分隔线 */
    font-size: 20px;
    font-weight: bold;
    color: #E65100;
    display: flex;
    align-items: center;
}

.card-header .card-icon {
    margin-right: 8px;
    font-size: 22px;
}

.card-body {
    padding: 24px;
}

/* ====== 计算器表单区 ====== */
.calculator-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.calculator-form {
    flex: 1;
}

.form-item {
    margin-bottom: 18px;
}

.form-item label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.form-item label .label-icon {
    margin-right: 4px;
}

.form-item input[type="number"] {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #FFCC80;
    border-radius: 8px;
    font-size: 15px;
    background: #FFF8E1; /* 浅黄色输入框背景 */
    color: #333;
    transition: all 0.25s;
}

.form-item input[type="number"]:focus {
    outline: none;
    border-color: #E65100;
    background: white;
    box-shadow: 0 0 0 3px rgba(230,81,0,0.08);
}

.form-hint {
    font-size: 12px;
    color: #9E9E9E;
    margin-top: 4px;
}

.calc-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #E65100 0%, #D84315 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
    letter-spacing: 2px;
    transition: all 0.25s;
    box-shadow: 0 3px 12px rgba(230,81,0,0.35);
}

.calc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(230,81,0,0.45);
}

.calc-btn:active {
    transform: translateY(0);
}

/* 计算器右侧插图 */
.calculator-illustration {
    width: 220px;
    flex-shrink: 0;
    text-align: center;
    padding-top: 30px;
}

.calc-illustration-box {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 2px dashed #FFCC80;
}

.calc-illustration-box .calc-icon-lg {
    font-size: 70px;
    color: #E65100;
    opacity: 0.7;
}

.illustration-text {
    font-size: 13px;
    color: #999;
    line-height: 1.7;
}

/* ====== 结果展示卡片 ====== */
.result-card {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 2px solid #FFCC80;
    border-radius: 12px;
    padding: 28px;
    margin-top: 24px;
    display: none;
}

.result-card.show {
    display: block;
    animation: fadeInUp 0.45s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-title {
    font-size: 20px;
    font-weight: bold;
    color: #E65100;
    margin-bottom: 18px;
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.result-item {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.result-item .result-label {
    color: #666;
}

.result-item .result-value {
    font-weight: bold;
    color: #E65100;
}

.result-total {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #E65100 0%, #D84315 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin-top: 4px;
}

.result-total .result-label {
    color: rgba(255,255,255,0.85);
}

.result-total .result-value {
    color: #FFD700;
    font-size: 22px;
}

/* ====== 今日黄历板块 ====== */
.huangli-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.huangli-item {
    background: #FFF8E1;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #FFA000;
}

.huangli-item .hl-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.huangli-item .hl-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.hl-yiji {
    grid-column: 1 / -1;
}

.hl-yiji .yi-list,
.hl-yiji .ji-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.hl-yiji span {
    background: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    border: 1px solid #FFCC80;
}

.ji-list span {
    border-color: #EF9A9A;
    color: #C62828;
    background: #FFEBEE;
}

/* ====== 税率表格 ====== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead th {
    background: linear-gradient(135deg, #E65100 0%, #D84315 100%);
    color: white;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
}

.data-table tbody td {
    padding: 11px 16px;
    font-size: 14px;
    border-bottom: 1px solid #F5F5F5;
    color: #444;
}

.data-table tbody tr:hover {
    background: #FFF8E1;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ====== 专项附加扣除卡片网格 ====== */
.deduction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.deduction-card {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
    border: 1px solid #FFE0B2;
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
}

.deduction-card .dc-amount {
    font-size: 26px;
    font-weight: bold;
    color: #E65100;
    display: block;
}

.deduction-card .dc-name {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin: 6px 0 2px;
    display: block;
}

.deduction-card .dc-unit {
    font-size: 12px;
    color: #999;
    display: block;
}

/* ====== 个税知识子区块 ====== */
.knowledge-section {
    margin-bottom: 22px;
}

.knowledge-section h3 {
    color: #E65100;
    font-size: 17px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #FFE0B2;
}

.knowledge-section p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.knowledge-section ul {
    margin: 10px 0 10px 22px;
}

.knowledge-section li {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    line-height: 1.6;
}

/* 四项综合所得网格 */
.combined-income-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.income-item {
    background: #FFF8E1;
    padding: 14px;
    border-radius: 8px;
    border-left: 3px solid #FFA000;
}

.income-item .inc-name {
    font-weight: bold;
    color: #E65100;
    font-size: 15px;
    margin-bottom: 2px;
}

.income-item .inc-desc {
    font-size: 12px;
    color: #777;
}

/* 误区卡片 */
.misconception-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.misconception-card {
    background: white;
    border: 1px solid #FFCC80;
    border-radius: 8px;
    overflow: hidden;
}

.mc-header {
    background: #FFF3E0;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: bold;
    color: #E65100;
}

.mc-body {
    padding: 10px 14px;
    font-size: 13px;
    color: #666;
}

.mc-body strong {
    color: #388E3C;
}

/* 提示框 */
.tip-note {
    background: #FFF8E1;
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 4px solid #FFA000;
    margin: 14px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.tip-warning {
    background: #FFF3E0;
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 4px solid #FF6D00;
    margin: 14px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* 使用指南步骤 */
.guide-step {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #FFA000;
}

.guide-step h3 {
    color: #E65100 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
    border: none !important;
    padding: 0 !important;
}

.guide-step p {
    font-size: 14px;
    color: #555;
    line-height: 1.75;
}

/* ====== 页脚 ====== */
.footer {
    background: white;
    border-radius: 12px;
    margin-top: 24px;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 30px;
    padding: 30px 30px 10px;
}

.footer-col h4 {
    color: #E65100;
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FFE0B2;
}

.footer-col p {
    font-size: 13px;
    color: #777;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 6px;
}

.footer-col a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #E65100;
}

.copyright-bar {
    text-align: center;
    padding: 18px;
    border-top: 1px solid #F0F0F0;
    color: #AAA;
    font-size: 13px;
}

/* ====== 响应式 ====== */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-section {
        padding: 30px 15px;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .calculator-wrapper {
        flex-direction: column;
    }

    .calculator-illustration {
        width: auto;
        padding-top: 0;
    }

    .calc-illustration-box {
        width: 120px;
        height: 120px;
    }

    .calc-illustration-box .calc-icon-lg {
        font-size: 46px;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .deduction-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .huangli-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .huangli-grid {
        grid-template-columns: 1fr;
    }
}
