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

body {
    background: #ffffff;
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Noto Sans', system-ui, -apple-system, 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
}

/* 简洁的行列表 */
.zodiac-list {
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 100%;
}

.zodiac-row {
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #e0e0e0;
}

.zodiac-row:last-child {
    border-bottom: none;
}

.zodiac-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
    min-width: 3rem;
}

.zodiac-name-container {
    text-align: center;
}

.zodiac-branch-container {
    text-align: center;
    margin-top: 0.2rem;
}

.zodiac-name {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

.zodiac-branch {
    font-size: 0.7rem;
    color: #666;
    font-weight: bold;
}

.numbers-elements-container {
    flex: 1;
    display: flex;
    white-space: nowrap;
}

.number-element-pair {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}

.element-label {
    font-size: 0.7rem;
    margin-top: 0.2rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.number-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    margin: 0;
    border-radius: 0;
    font-family: monospace;
    font-weight: bold;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 3rem;
    height: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid white;
}

.number-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* 波色样式 - 类名与实际颜色一致 */
.badge-red {
    background: #e34d2b;
    color: #fff5e8;
    text-shadow: 0 1px 0 #8a2a10;
}
.badge-green {
    background: #3c9e4c;   /* 真正的绿色背景 */
    color: #f9f7cf;
    text-shadow: 0 1px 0 #1a4a1a;
}
.badge-blue {
    background: #2c6e9e;   /* 真正的蓝色背景 */
    color: white;
    text-shadow: 0 1px 0 #0a2f4d;
}
.badge-black {
    background: #333333;
    color: white;
}

@media (max-width: 480px) {
    .container { padding: 1rem; }
    .number-badge { font-size: 1.2rem; width: 2.4rem; height: 2.4rem; padding: 0.6rem; margin: 0; }
    .zodiac-name { font-size: 1rem; }
}

.zodiac-name-red {
    color: #ff0000;
}

/* 五行颜色 */
.element-金 {
    color: #ffd700;
}

.element-木 {
    color: #008000;
}

.element-水 {
    color: #0000ff;
}

.element-火 {
    color: #ff0000;
}

.element-土 {
    color: #daa520;
}

/* 加载中样式 */
.loading-indicator {
    text-align: center;
    padding: 1rem;
}

/* 操作按钮容器 */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 50px;
}

/* 清空按钮样式 */
.clear-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.5rem;
    background: #e34d2b;
    color: #fff5e8;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 0 #8a2a10;
}

.clear-btn:hover {
    background: #c63f25;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}