/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    line-height: 1.6;
}

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

/* 导航样式 */
.navbar {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    padding: 5px 0;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.nav-links li {
    margin: 0 8px;
}

.nav-links a {
    color: #e0e7ff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* 主内容区样式 */
.calculator-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    border-bottom: 2px solid #4a6491;
    padding-bottom: 15px;
}

.input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    flex: 1;
    min-width: 300px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.date-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.styled-select {
    flex: 1;
    min-width: 100px;
    padding: 12px 10px;
    border: 2px solid #d1d9e6;
    border-radius: 8px;
    background-color: #f9fbfd;
    font-size: 1rem;
    color: #2c3e50;
    transition: border-color 0.3s;
}

.styled-date {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d9e6;
    border-radius: 8px;
    background-color: #f9fbfd;
    font-size: 1rem;
    color: #2c3e50;
    transition: border-color 0.3s;
}

.styled-select:focus, .styled-date:focus {
    border-color: #4a6491;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 100, 145, 0.2);
}

/* 按钮容器样式 */
.button-container {
    max-width: 500px;
    width: 100%;
    margin: 30px auto;
    text-align: center;
}

.calculate-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.calculate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.calculate-button:active {
    transform: translateY(-1px);
}

/* 合并结果区域样式 */
.combined-results {
    background: linear-gradient(to bottom right, #f8f9ff, #eef2ff);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e7ff;
    margin-top: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.result-item {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.result-item h3 {
    color: #4a6491;
    margin-bottom: 15px;
    font-size: 1.3rem;
    padding-bottom: 8px;
    border-bottom: 1px dashed #d1d9e6;
}

.result-item p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* 突出周岁样式 */
.international-age {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e74c3c;
    margin: 10px 0;
}

/* 虚岁样式 */
.nominal-age {
    font-size: 1.6rem;
    font-weight: 600;
    color: #3498db;
    margin: 10px 0;
}

/* 大家都在查板块样式 */
.people-also-search {
    margin: 40px 0;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 10px;
}

.people-also-search h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e7ff;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.search-item {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-item:hover {
    background: #eef2ff;
    color: #4a6491;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 解释区域样式 */
.explanation-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 10px;
}

.explanation-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.explanation-section p {
    margin: 10px 0;
    line-height: 1.7;
    color: #2c3e50;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.explanation-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.explanation-card h4 {
    color: #4a6491;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* 详情页样式 */
.birthdate-display {
    padding: 12px;
    background-color: #f9fbfd;
    border: 2px solid #d1d9e6;
    border-radius: 8px;
    font-size: 1rem;
    color: #2c3e50;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
}

.error-message p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #e74c3c;
}

.back-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: #e0e7ff;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #cbd5e0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .search-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        margin-top: 15px;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px;
    }
    
    .calculator-card {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .button-container {
        max-width: 100%;
    }
    
    .international-age {
        font-size: 1.8rem;
    }
    
    .nominal-age {
        font-size: 1.4rem;
    }
    
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .date-inputs {
        flex-direction: column;
    }
    
    .styled-select, .styled-date {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-links a {
        margin: 5px 0;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .international-age {
        font-size: 1.6rem;
    }
    
    .nominal-age {
        font-size: 1.3rem;
    }
}



/* 智障系统盲猜生日板块样式 */
.blind-guess-section {
    margin: 40px 0;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 10px;
}

.blind-guess-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e7ff;
}

.guess-container {
    text-align: center;
}

.guess-result {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #2c3e50;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.guess-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.guess-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.guess-button.generate {
    background: linear-gradient(to right, #27ae60, #2ecc71);
    color: white;
}

.guess-button.correct {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
}

.guess-button.wrong {
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
}

.guess-button.reset {
    background: linear-gradient(to right, #f39c12, #e67e22);
    color: white;
}

.guess-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.guess-button:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.guess-feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.feedback-correct {
    color: #27ae60;
}

.feedback-wrong {
    color: #e74c3c;
}

.feedback-info {
    color: #3498db;
}

.guess-stats {
    margin-top: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    font-size: 1rem;
    color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stat-correct {
    color: #27ae60;
    font-weight: 600;
}

.stat-wrong {
    color: #e74c3c;
    font-weight: 600;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .guess-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .guess-button {
        width: 100%;
        max-width: 250px;
    }
}