﻿:root {
    /* HC 品牌色定义 */
    --brand-blue: #0a1f44;    /* 深藏青色 */
    --brand-light-blue: #1d4ed8; /* 交互亮蓝 */
    --brand-orange: #f59e0b;  /* 橙金色 */
    --bg-gray: #f8fafc;       
    --card-border: #e2e8f0;
    --text-main: #1e293b;
    --text-light: #64748b;
    --success-green: #10b981;
}

.hk-tax-pro {
    max-width: 1140px;
    margin: 50px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- 顶部年度选择器 --- */
.tax-year-selector {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--card-border);
    border-left: 6px solid var(--brand-orange);
}
.year-info { display: flex; flex-direction: column; gap: 5px; }
.year-label { font-weight: 700; font-size: 1.2em; color: var(--brand-blue); display: flex; align-items: center; gap: 8px;}
.year-desc { font-size: 0.9em; color: var(--text-light); }

.year-select {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: var(--brand-blue);
    font-weight: 700;
    cursor: pointer;
    outline: none;
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

/* --- 整体布局 --- */
.tax-layout { display: flex; gap: 35px; align-items: flex-start; }
.tax-form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 25px;}
.tax-result { flex: 0 0 420px; }

/* --- 左侧输入卡片 --- */
.input-card { 
    background: #fff; 
    border-radius: 12px; 
    padding: 30px; 
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.card-title { 
    font-weight: 700; 
    margin-bottom: 25px; 
    color: var(--brand-blue); 
    display: flex; align-items: center; gap: 10px;
    font-size: 1.15em;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}
.card-title i { font-style: normal; font-size: 1.2em; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row { margin-bottom: 20px; }
.form-grid .form-row { margin-bottom: 0; }
.form-row.full { grid-column: span 2; }

.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9em; color: #475569; }

.input-wrap { position: relative; }
.symbol { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-weight: 600; }

.tax-input {
    width: 100%; 
    padding: 12px 15px;
    border: 1px solid #cbd5e1; 
    border-radius: 8px;
    font-size: 1em; 
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #f8fafc;
    color: var(--text-main);
    font-family: inherit;
}
.input-wrap .tax-input { padding-left: 35px; font-weight: 600; font-family: monospace; font-size: 1.1em;}
.tax-input:focus { border-color: var(--brand-light-blue); background: #fff; box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08); outline: none; }
select.tax-input { font-weight: 600; cursor: pointer; }

.toggle-check { 
    display: inline-flex; align-items: center; cursor: pointer; 
    font-size: 0.95em; color: #475569; font-weight: 500;
    padding: 8px 15px; background: #f1f5f9; border-radius: 6px;
    transition: all 0.2s; border: 1px solid transparent;
}
.toggle-check:hover { background: #e2e8f0; color: var(--brand-blue); }
.toggle-check input { margin-right: 10px; width: 16px; height: 16px; accent-color: var(--brand-light-blue); }

.hidden-area { 
    display: none; margin-top: 20px; padding: 20px; 
    background: #f8fafc; border-radius: 8px; border: 1px dashed #cbd5e1; 
}

/* --- 右侧结果面板 (HC 金融级账单风格) --- */
.result-sticky { 
    position: sticky; 
    top: 40px; 
    background: linear-gradient(135deg, var(--brand-blue) 0%, #152f5d 100%); 
    color: white; 
    border-radius: 16px; 
    padding: 35px; 
    box-shadow: 0 20px 40px rgba(10, 31, 68, 0.2); 
}

.res-header { text-align: center; margin-bottom: 25px; }
.res-title { font-size: 0.9em; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; color: #cbd5e1; display:flex; justify-content:center; align-items:center; gap:5px;}
.tooltip-icon { display:inline-block; width:16px; height:16px; background:rgba(255,255,255,0.2); border-radius:50%; text-align:center; line-height:16px; font-size:12px; cursor:help;}

.res-amount { 
    font-size: 3em; 
    font-weight: 800; 
    margin: 10px 0; 
    color: var(--brand-orange); 
    text-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
    line-height: 1;
    font-family: monospace;
}

.res-badge { 
    display: inline-block; padding: 6px 14px; 
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px; font-size: 0.85em; color: #e2e8f0; 
}

.res-metrics { display: flex; gap: 10px; margin-bottom: 25px; }
.metric-box { flex: 1; background: rgba(0,0,0,0.2); padding: 12px; border-radius: 8px; text-align: center;}
.metric-val { font-size: 1.2em; font-weight: 700; color: #fff; font-family: monospace;}
.metric-lbl { font-size: 0.75em; color: #94a3b8; margin-top: 4px; }

.bill-breakdown {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.line-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.9em; color: #cbd5e1; }
.line-item:last-child { margin-bottom: 0; }
.line-val { font-family: monospace; font-size: 1.1em; }

/* 账单分割线 */
.divider { height: 1px; background: dashed rgba(255,255,255,0.2); margin: 15px 0; border-top: 1px dashed rgba(255,255,255,0.3); }

.highlight-row { color: #fff; font-weight: 600; font-size: 1em; }
.provisional-row { color: #93c5fd; } /* 浅蓝色突出预缴税 */

/* 转化按钮 */
.cta-btn {
    display: block; width: 100%; padding: 14px; margin-top: 25px;
    background: var(--brand-orange); color: #fff; text-align: center;
    border-radius: 8px; font-weight: 700; text-decoration: none;
    transition: all 0.2s; border: none; cursor: pointer; font-size: 1em;
}
.cta-btn:hover { background: #d97706; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); color: #fff;}

/* 警告提示 */
.alert-box {
    margin-top: 15px; font-size: 0.8em; color: #94a3b8; line-height: 1.5;
    background: rgba(0,0,0,0.15); padding: 10px 15px; border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

@media (max-width: 900px) {
    .tax-layout { flex-direction: column; }
    .tax-result { flex: auto; width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .form-row.full { grid-column: span 1; }
}
