/* ========== 极简轻奢风格 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #faf8f5;  /* 柔和米白基调 */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #2c2b28;
    line-height: 1.5;
    padding: 2rem 1rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 头部轻奢感 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e8dfd4;
}

.site-selector select {
    background: #fff;
    border: 1px solid #ddd0c0;
    border-radius: 12px;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: #2c2b28;
    cursor: pointer;
    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='#b88b4a' 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 0.8rem center;
    background-size: 1rem;
}

.site-selector button {
    background: #fff;
    border: 1px solid #ddd0c0;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    font-family: inherit;
    color: #b88b4a;
    cursor: pointer;
    transition: all 0.2s;
}
.site-selector button:hover {
    background: #f5efe8;
    border-color: #c9ad8a;
}

/* 卡片轻奢设计：圆角、浅阴影、微妙边框 */
.card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02), 0 2px 4px rgba(0,0,0,0.03);
    padding: 1.8rem;
    margin-bottom: 2rem;
    border: 1px solid #f0e9e0;
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.04);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1.5px solid #e8dfd4;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #2c2b28;
}
.card-title span:first-child {
    background: linear-gradient(135deg, #2c2b28 0%, #b88b4a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* 图表容器微调 */
.chart-container {
    width: 100%;
    height: 380px;
}

/* 表格轻奢风格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    text-align: left;
    padding: 1rem 0.6rem;
    border-bottom: 1px solid #f0e6dc;
}
.data-table th {
    font-weight: 500;
    color: #b88b4a;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.data-table tr:hover td {
    background-color: #fdfaf7;
}

/* 按钮 & 输入框 轻奢点缀 */
input, button, textarea, select {
    font-family: inherit;
}
input, select, textarea {
    background: #fffcf9;
    border: 1px solid #e0d6c9;
    border-radius: 14px;
    padding: 0.5rem 0.8rem;
    transition: 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #d4af7a;
    box-shadow: 0 0 0 2px rgba(212,175,122,0.2);
}
button {
    border-radius: 30px;
    font-weight: 500;
}
button:active {
    transform: scale(0.97);
}

/* 模态框轻奢 */
.modal-content {
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid #f0e6dc;
    box-shadow: 0 20px 35px rgba(0,0,0,0.05);
}

/* 响应式 */
@media (max-width: 640px) {
    body { padding: 1rem; }
    .card { padding: 1rem; border-radius: 20px; }
    .chart-container { height: 260px; }
    .data-table th, .data-table td { padding: 0.5rem 0.3rem; }
    .site-selector { flex-direction: column; align-items: stretch; }
}