body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.8;
    background-color: #f8f9fa;
    color: #333;
    max-width: 1200px;
    margin: 20px auto;
    padding: 25px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 28px;
    font-weight: 400;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 24px 0;
    flex-wrap: wrap;
    text-align: center;
    padding: 0 10px;
}

button.control-btn {
    padding: 11px 18px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    background-color: white;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

button.control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

button.control-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.table-container {
    margin: 28px 0;
    background-color: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

.vowel-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    table-layout: fixed;
}

.vowel-table th,
.vowel-table td {
    border: 1px solid #f0f0f0;
    padding: 9px 6px;
    text-align: center;
    vertical-align: top;
    min-width: 90px;
    word-wrap: break-word;
}

.vowel-table th {
    background-color: #f1f5f9;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: -0.2px;
}

.vowel-table td button {
    padding: 7px 8px;
    font-size: 11px;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    text-align: center;
    white-space: pre-wrap;
    overflow: hidden;
    line-height: 1.5;
    font-weight: 500;
    color: #4a5568;
}

.vowel-table td button:hover {
    background-color: #e9ecef;
    transform: scale(1.02);
}

.vowel-table td button.active {
    background-color: #3498db;
    color: white;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.4);
}

.vowel-table td.empty-cell {
    background-color: #fafafa;
    min-height: 54px;
}

.special-vowels {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.special-vowels button {
    padding: 9px 12px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.special-vowels button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.special-vowels button.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.selected {
    margin: 16px 0;
    padding: 14px;
    background-color: #ecf0f1;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    border-left: 4px solid #3498db;
}

.result {
    margin-top: 32px;
    padding: 24px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    min-height: 130px;
    text-align: center;
    font-size: 20px;
    line-height: 2.4;
    font-weight: 600;
    color: #2c3e50;
}

.result p {
    margin: 10px 0;
    letter-spacing: 3px;
}

.loading {
    color: #95a5a6;
    font-style: italic;
    font-size: 18px;
}

.error {
    color: #e74c3c;
    font-size: 18px;
    font-weight: 600;
}

.result-info {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 7px;
    border-left: 4px solid #3498db;
    font-weight: 500;
}

.detected-conflict {
    color: #e74c3c;
    font-weight: 600;
}

.detected-safe {
    color: #27ae60;
    font-weight: 600;
}

.warning {
    color: #e67e22;
    font-weight: 600;
}

.redundancy-check {
    margin-top: 18px;
    padding: 14px;
    background-color: #f0f7ff;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.check-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
    letter-spacing: -0.3px;
}

.check-category {
    margin-top: 14px;
    padding-left: 12px;
}

.check-pass {
    color: #27ae60;
    font-weight: 600;
    font-size: 13px;
}

.check-fail {
    color: #e74c3c;
    font-weight: 600;
    font-size: 13px;
}

.result .char {
    display: inline-block;
    padding: 0 6px;
    margin: 2px 1px;
    min-width: 18px;
    text-align: center;
    border-radius: 4px;
}

.result .char.multi-char {
    color: #e67e22;
    font-weight: 700;
    border-bottom: 2px dotted rgba(230, 126, 34, 0.6);
    background-color: rgba(230, 126, 34, 0.04);
    cursor: help;
}

.result .char:hover {
    transform: translateY(-2px);
    transition: transform 0.12s ease;
}
