:root {
    --primary-color: #c62f2f;
    --secondary-color: #d4af37;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --background-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f8f0e5"/><path d="M0,50 Q25,25 50,50 T100,50" stroke="%23d4af37" stroke-width="0.5" fill="none"/></svg>');
}

body {
    background-color: #f8f0e5;
    background-image: var(--background-pattern);
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    padding-bottom: 50px;
}
.abtool-header{
    background-image: linear-gradient(to left,#FF416C,#FF4B2B 60%);
}
.navbar-nav > li:hover{
    background-color: #8b0000;
}
.header {
    background: linear-gradient(135deg, var(--primary-color), #8b0000);
    color: white;
    padding: 25px 0;
    margin-bottom: 10px;
    border-bottom: 5px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.control-panel {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    border: 1px solid #e0d6c3;
}

.table-container {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e0d6c3;
}

.jieqi-table {
    margin-bottom: 0;
}

.jieqi-table thead {
    background-color: var(--primary-color);
    color: white;
}

.jieqi-table th {
    font-weight: 600;
    text-align: center;
}

.jieqi-table tbody tr:nth-child(odd) {
    background-color: rgba(248, 240, 229, 0.5);
}

.jieqi-table tbody tr:hover {
    background-color: rgba(198, 47, 47, 0.08);
}

.season-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    margin: 0 auto;
}

.spring { background-color: #4caf50; }
.summer { background-color: #f44336; }
.autumn { background-color: #ff9800; }
.winter { background-color: #2196f3; }

.info-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0d6c3;
}

.info-card h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.year-input {
    max-width: 120px;
    text-align: center;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 8px 12px;
}

.btn-primary-custom {
    background: linear-gradient(to bottom, var(--primary-color), #a52a2a);
    border: none;
    padding: 8px 20px;
    font-weight: bold;
}

.btn-primary-custom:hover {
    background: linear-gradient(to bottom, #a52a2a, var(--primary-color));
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

.jieqi-name {
    font-weight: bold;
    color: var(--dark-color);
}

.solar-date, .lunar-date, .jieqi-time {
    text-align: center;
}

.season-header {
    background-color: rgba(212, 175, 55, 0.15) !important;
    font-weight: bold;
    color: var(--dark-color);
}

.season-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.season-title span {
    margin-left: 8px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .header .subtitle {
        font-size: 1rem;
    }

    .control-panel {
        padding: 15px;
    }

    .table-container {
        overflow-x: auto;
    }
}