/* CSS重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 语言选择器样式 */
.language-selector {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.language-dropdown {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.language-dropdown:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.language-dropdown option {
    background: #2d3748;
    color: white;
}

/* 主要内容区域 */
main {
    flex: 1;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

/* 表单样式 */
.age-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    position: relative;
}

.input-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 1rem;
}

.label-text {
    flex: 1;
}

.label-icon {
    font-size: 1.2rem;
}

.input-group input[type="datetime-local"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.input-group input[type="datetime-local"]:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Special styling for number input in special day calculator */
.input-group input[type="number"] {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
    min-height: 60px;
    box-sizing: border-box;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input[type="number"]::placeholder {
    color: #a0aec0;
    font-size: 1rem;
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.calculate-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
}

/* 结果显示区域 */
.result-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    animation: fadeInUp 0.5s ease;
}

.result-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2d3748;
    font-size: 1.5rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: translateY(-3px);
}

.result-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.summary {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #667eea;
    margin-bottom: 25px;
}

.summary p {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    color: #2d3748;
}

.calculation-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.calculation-note small {
    color: #718096;
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
    text-align: center;
    font-style: italic;
}

/* 详细统计样式 */
.detailed-stats {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.detailed-stats h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 600;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.detail-item:hover {
    background: linear-gradient(135deg, #edf2f7 0%, #cbd5e0 100%);
    border-left-color: #667eea;
    transform: translateX(5px);
}

.detail-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
}

.detail-label {
    color: #718096;
    font-weight: 500;
    margin-right: 15px;
    min-width: 50px;
}

.detail-value {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1;
}

/* 结果操作按钮 */
.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.share-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.save-btn {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.action-btn:active {
    transform: translateY(0);
}

/* 信息区域 */
.info-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 1.8rem;
}

.info-content {
    display: grid;
    gap: 25px;
}

.info-item h3 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item p {
    line-height: 1.7;
    color: #4a5568;
}

.tool-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tool-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px;
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .calculator-card,
    .info-section {
        padding: 25px;
        border-radius: 15px;
    }
    
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .result-item {
        padding: 15px;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
    
    .info-content {
        gap: 20px;
    }
    
    .detailed-stats {
        padding: 20px;
    }
    
    .detail-item {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .detail-icon {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .detail-label {
        margin-right: 0;
        font-size: 0.9rem;
    }
    
    .detail-value {
        font-size: 1rem;
    }
    
    .result-actions {
        gap: 12px;
        margin-top: 20px;
    }
    
    .action-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .language-selector {
        position: static;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .language-dropdown {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .calculator-card,
    .info-section {
        padding: 20px;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .result-item {
        padding: 12px;
    }
    
    .result-value {
        font-size: 1.3rem;
    }
    
    .calculate-btn {
        padding: 15px 24px;
        font-size: 1rem;
    }
    
    .detailed-stats {
        padding: 15px;
    }
    
    .detailed-stats h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .detail-item {
        padding: 10px 12px;
    }
    
    .detail-icon {
        font-size: 1.3rem;
    }
    
    .detail-value {
        font-size: 0.95rem;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    
    .action-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* 高对比度和可访问性 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .calculator-card,
    .info-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .calculate-btn {
        display: none;
    }
} 

/* 日期差计算页面特定样式 */
.date-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.time-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.toggle-label:hover {
    border-color: #667eea;
    background: #edf2f7;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    cursor: pointer;
}

.toggle-text {
    font-weight: 500;
    color: #2d3748;
}

.time-inputs {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e2e8f0;
    margin-top: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.reset-btn {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    justify-content: center;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.reset-btn:active {
    transform: translateY(0);
}

.main-result {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.3);
}

.result-summary h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.95rem;
}

.stat-value {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fun-facts {
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(240, 147, 251, 0.3);
}

.fun-facts h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.fact-content p {
    margin: 12px 0;
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.6;
    padding: 8px 0;
}

.copy-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

/* 输入框样式优化 */
.input-group input[type="date"],
.input-group input[type="time"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    color: #2d3748;
}

.input-group input[type="date"]:focus,
.input-group input[type="time"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Navigation Styles */
.main-nav {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    font-size: 1.2rem;
}

/* Life Age Tools Styles */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tool-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.tool-card h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tool-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tool-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(102, 126, 234, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.close:hover {
    color: #667eea;
}

/* Result Styles - 重新设计结果显示样式 */
.result-item {
    padding: 20px 25px;
    margin: 15px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 15px;
    border-left: 5px solid #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left-width: 8px;
}

.result-item strong {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.result-item:not(.eligible):not(.not-eligible) {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.5;
}

.result-item.eligible {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: #28a745;
    color: #155724;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.result-item.eligible::before {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.result-item.eligible strong {
    color: #155724;
}

.result-item.not-eligible {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left-color: #dc3545;
    color: #721c24;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.result-item.not-eligible::before {
    background: linear-gradient(90deg, #dc3545 0%, #e74c3c 100%);
}

.result-item.not-eligible strong {
    color: #721c24;
}

/* 结果显示容器样式 */
#result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

#result::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 结果项动画 */
.result-item {
    animation: fadeInScale 0.5s ease-out;
    animation-fill-mode: both;
}

.result-item:nth-child(1) { animation-delay: 0.1s; }
.result-item:nth-child(2) { animation-delay: 0.2s; }
.result-item:nth-child(3) { animation-delay: 0.3s; }
.result-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#result h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

#resultContent {
    position: relative;
    z-index: 1;
}

/* 特殊结果项样式 */
.result-item.eligible,
.result-item.not-eligible {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.result-item.eligible .corner-ribbon,
.result-item.not-eligible .corner-ribbon {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent;
    transition: all 0.3s ease;
}

.result-item.eligible .corner-ribbon {
    border-right-color: #28a745;
}

.result-item.not-eligible .corner-ribbon {
    border-right-color: #dc3545;
}

.result-item.eligible strong,
.result-item.not-eligible strong {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 添加图标到结果项 */
.result-item.eligible::after {
    content: '✅';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    z-index: 2;
    animation: pulse 2s infinite;
}

.result-item.not-eligible::after {
    content: '❌';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 退休计算器特殊样式 - 通过JavaScript添加类名 */
.result-item.retirement-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left-color: #667eea;
}

.result-item.retirement-info strong {
    color: white;
}

.result-item.retirement-info::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* 响应式工具网格 */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-card {
        padding: 25px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        gap: 15px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-icon {
        font-size: 2.5rem;
    }
    
    .tool-card h3 {
        font-size: 1.2rem;
    }
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-container {
        gap: 15px;
    }
    
    .nav-item {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-item {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .input-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .result-summary h3 {
        font-size: 1.8rem;
    }
    
    .main-result {
        padding: 25px 20px;
    }
    
    .fun-facts {
        padding: 20px;
    }
    
    .time-inputs {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .toggle-label {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }
    
    .time-inputs {
        padding: 15px;
    }
    
    .form-actions {
        gap: 12px;
    }
    
    .reset-btn,
    .calculate-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .result-summary h3 {
        font-size: 1.5rem;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
}

/* 导航栏样式 */
.main-nav {
    margin-top: 30px;
    margin-bottom: 20px;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.nav-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.nav-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .nav-container {
        gap: 10px;
    }
    
    .nav-item {
        padding: 12px 15px;
        min-width: 100px;
    }
    
    .nav-icon {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .nav-item {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        min-width: 200px;
        padding: 10px 15px;
    }
    
    .nav-icon {
        margin-bottom: 0;
        font-size: 1.3rem;
    }
    
    .nav-text {
        font-size: 0.85rem;
    }
} 

/* 生活年龄工具页面样式 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.tool-card h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.tool-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.tool-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 模态框样式 */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 5% auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    position: relative;
    color: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-content .input-group {
    margin-bottom: 25px;
}

.modal-content .input-group label {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: block;
}

.modal-content .input-group input,
.modal-content .input-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modal-content .input-group input:focus,
.modal-content .input-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.modal-content .input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.modal-content .input-group select option {
    background: #2d3748;
    color: white;
}

.modal-content .calculate-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 18px 32px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.modal-content .calculate-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.close {
    color: white;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 20px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 响应式结果样式 */
@media (max-width: 768px) {
    #result {
        padding: 25px 20px;
        margin-top: 25px;
    }
    
    #result h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .result-item {
        padding: 18px 20px;
        margin: 12px 0;
    }
    
    .result-item strong {
        font-size: 1rem;
    }
    
    .result-item.eligible strong,
    .result-item.not-eligible strong {
        font-size: 1.1rem;
    }
    
    .result-item.eligible::after,
    .result-item.not-eligible::after {
        font-size: 1.3rem;
        top: 12px;
        right: 12px;
    }
    
    .result-item.eligible .corner-ribbon,
    .result-item.not-eligible .corner-ribbon {
        border-width: 0 25px 25px 0;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-card {
        padding: 25px;
    }
    
    .tool-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .tool-card h3 {
        font-size: 1.2rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 25px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    #result {
        padding: 20px 15px;
        margin-top: 20px;
    }
    
    #result h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .result-item {
        padding: 15px 18px;
        margin: 10px 0;
    }
    
    .result-item strong {
        font-size: 0.95rem;
    }
    
    .result-item.eligible strong,
    .result-item.not-eligible strong {
        font-size: 1rem;
    }
    
    .result-item.eligible::after,
    .result-item.not-eligible::after {
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }
    
    .result-item.eligible .corner-ribbon,
    .result-item.not-eligible .corner-ribbon {
        border-width: 0 20px 20px 0;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-icon {
        font-size: 2rem;
    }
    
    .tool-card h3 {
        font-size: 1.1rem;
    }
    
    .tool-card p {
        font-size: 0.9rem;
    }
    
    .tool-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
} 

/* 新页面样式 - 隐私政策、关于我们、服务条款 */
.back-nav {
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
}

.back-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(-2px);
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.policy-section,
.about-section,
.terms-section {
    margin-bottom: 30px;
}

.policy-section:last-child,
.about-section:last-child,
.terms-section:last-child {
    margin-bottom: 0;
}

.policy-section h2,
.about-section h2,
.terms-section h2 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.policy-section p,
.about-section p,
.terms-section p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.policy-section ul,
.about-section ul,
.terms-section ul {
    color: #4a5568;
    line-height: 1.7;
    margin: 15px 0;
    padding-left: 20px;
}

.policy-section li,
.about-section li,
.terms-section li {
    margin-bottom: 8px;
}

.policy-section strong,
.about-section strong,
.terms-section strong {
    color: #2d3748;
    font-weight: 600;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.principle-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.principle-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.principle-item h3 {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.principle-item p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Footer 样式 */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-main p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 6px;
}

.footer-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
}

.footer-separator {
    color: #cbd5e0;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-card {
        padding: 25px;
        margin: 20px;
    }
    
    .policy-section h2,
    .about-section h2,
    .terms-section h2 {
        font-size: 1.3rem;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .principle-item {
        padding: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .content-card {
        padding: 20px;
        margin: 15px;
        border-radius: 15px;
    }
    
    .policy-section h2,
    .about-section h2,
    .terms-section h2 {
        font-size: 1.2rem;
    }
    
    .policy-section p,
    .about-section p,
    .terms-section p {
        font-size: 0.95rem;
    }
    
    .principle-item {
        padding: 15px;
    }
    
    .principle-item h3 {
        font-size: 1.1rem;
    }
} 

/* Detailed Tools Section Styles */
.detailed-tools-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.detailed-tools-section h2 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.detailed-tools-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.tool-description {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.tool-description:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    background: #f1f5f9;
}

.tool-description h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-content p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.description-content p strong {
    color: #2d3748;
    font-weight: 600;
}

.description-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.description-content li {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.description-content li strong {
    color: #2d3748;
    font-weight: 600;
}

/* Additional Info Section Styles */
.additional-info-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.additional-info-section h2 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.additional-info-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.info-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    background: #f1f5f9;
    border-color: #cbd5e0;
}

.info-card h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .detailed-tools-section,
    .additional-info-section {
        padding: 25px;
        margin-bottom: 25px;
    }

    .detailed-tools-section h2,
    .additional-info-section h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .tool-description {
        padding: 20px;
        margin-bottom: 30px;
    }

    .tool-description h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card {
        padding: 20px;
    }

    .info-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .detailed-tools-section,
    .additional-info-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .detailed-tools-section h2,
    .additional-info-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .tool-description {
        padding: 15px;
        margin-bottom: 25px;
    }

    .tool-description h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .description-content p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .description-content li {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .info-card {
        padding: 15px;
    }

    .info-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .info-card p {
        font-size: 0.9rem;
    }
} 

/* Special Day Calculator Styles */
.special-day-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.milestone-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.milestone-checkbox:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.milestone-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.milestone-checkbox input[type="checkbox"]:checked + .milestone-text {
    color: #667eea;
    font-weight: 600;
}

.milestone-checkbox:has(input[type="checkbox"]:checked) {
    border-color: #667eea;
    background: #f0f4ff;
}

.milestone-text {
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Results Section Styles */
.results-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-header h2 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.share-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(102, 126, 234, 0.4);
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.result-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    background: #f1f5f9;
}

.result-card.milestone-result {
    border-left-color: #667eea;
}

.result-card.custom-result {
    border-left-color: #f56565;
}

.result-header {
    margin-bottom: 20px;
}

.result-header h3 {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-date {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-main {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
}

.day-of-week {
    font-size: 1rem;
    color: #667eea;
    font-weight: 500;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.detail-icon {
    font-size: 1.1rem;
}

.detail-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
    min-width: 80px;
}

.detail-value {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 600;
}

.historical-events {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.historical-events h4 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.events-content {
    min-height: 60px;
}

.loading {
    color: #718096;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.events-list li {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.events-list li:last-child {
    border-bottom: none;
}

.event-year {
    font-weight: 600;
    color: #667eea;
    min-width: 60px;
    font-size: 0.9rem;
}

.event-text {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

.no-events {
    color: #718096;
    font-style: italic;
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.no-events .event-year {
    color: #667eea;
    font-weight: 600;
}

/* Detailed Features Section */
.detailed-features-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.detailed-features-section h2 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.detailed-features-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    background: #f1f5f9;
    border-color: #cbd5e0;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.notification-error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.notification-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

/* Responsive Design for Special Day Calculator */
@media (max-width: 768px) {
    .form-section {
        padding: 20px;
    }

    .form-section h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .input-group input[type="number"] {
        padding: 16px 20px;
        font-size: 1rem;
        min-height: 55px;
    }

    .milestones-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }

    .milestone-checkbox {
        padding: 10px 12px;
    }

    .milestone-text {
        font-size: 0.9rem;
    }

    .results-section {
        padding: 25px;
        margin-bottom: 25px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .results-header h2 {
        font-size: 1.6rem;
    }

    .share-actions {
        width: 100%;
        justify-content: center;
    }

    .result-card {
        padding: 20px;
    }

    .result-header h3 {
        font-size: 1.2rem;
    }

    .result-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-item {
        padding: 10px 12px;
    }

    .date-main {
        font-size: 1.1rem;
    }

    .day-of-week {
        font-size: 0.9rem;
    }

    .historical-events {
        padding: 15px;
    }

    .historical-events h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .detailed-features-section {
        padding: 25px;
        margin-bottom: 25px;
    }

    .detailed-features-section h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 15px;
    }

    .form-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .input-group input[type="number"] {
        padding: 14px 18px;
        font-size: 0.95rem;
        min-height: 50px;
    }

    .milestones-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .milestone-checkbox {
        padding: 8px 10px;
    }

    .milestone-text {
        font-size: 0.85rem;
    }

    .results-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .results-header h2 {
        font-size: 1.4rem;
    }

    .action-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .result-card {
        padding: 15px;
    }

    .result-header h3 {
        font-size: 1.1rem;
    }

    .detail-item {
        padding: 8px 10px;
    }

    .detail-label {
        font-size: 0.85rem;
        min-width: 70px;
    }

    .detail-value {
        font-size: 0.9rem;
    }

    .date-main {
        font-size: 1rem;
    }

    .day-of-week {
        font-size: 0.85rem;
    }

    .historical-events {
        padding: 12px;
    }

    .historical-events h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .events-list li {
        padding: 8px 0;
        gap: 10px;
    }

    .event-year {
        font-size: 0.85rem;
        min-width: 50px;
    }

    .event-text {
        font-size: 0.9rem;
    }

    .detailed-features-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .detailed-features-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* Fun Age Games 专用样式 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
}

.game-card p {
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.6;
}

.game-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Game Modal 样式 */
.game-modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Age Challenge Tool 增强样式 */
.challenge-container {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin: 30px 0;
    position: relative;
}

.challenger-card {
    flex: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.challenger-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

.challenger-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.challenger-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.challenger-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.challenger-header h3 {
    color: #2d3748;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.challenger-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group.enhanced {
    position: relative;
}

.input-group.enhanced label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.label-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

.label-text {
    color: #2d3748;
}

.enhanced-input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    color: #2d3748;
    font-family: inherit;
    box-sizing: border-box;
}

.enhanced-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fcfcfd;
}

.enhanced-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.vs-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 60px;
}

.vs-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
    border: 3px solid white;
    position: relative;
    z-index: 2;
}

.vs-separator::before,
.vs-separator::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 30px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    left: 50%;
    transform: translateX(-50%);
}

.vs-separator::before {
    top: 0;
}

.vs-separator::after {
    bottom: 0;
}

.challenge-submit {
    text-align: center;
    margin-top: 30px;
}

.enhanced-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px -5px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.enhanced-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.enhanced-btn:hover::before {
    left: 100%;
}

.enhanced-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(102, 126, 234, 0.5);
}

.enhanced-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    font-weight: 600;
}

.game-description {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .challenge-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .vs-separator {
        min-width: auto;
        height: 60px;
        transform: rotate(90deg);
    }
    
    .vs-separator::before,
    .vs-separator::after {
        width: 30px;
        height: 2px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .vs-separator::before {
        left: 0;
    }
    
    .vs-separator::after {
        right: 0;
        left: auto;
    }
    
    .challenger-card {
        padding: 20px;
    }
    
    .challenger-header {
        gap: 12px;
    }
    
    .challenger-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .enhanced-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .challenger-card {
        padding: 15px;
    }
    
    .challenger-header h3 {
        font-size: 1.1rem;
    }
    
    .enhanced-input {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .enhanced-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
        gap: 8px;
    }
}

.challenger-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.challenger-section h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Celebrity Results 样式 */
.celebrity-matches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.celebrity-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.celebrity-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.celebrity-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.celebrity-card h4 {
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.profession {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.birth-info, .age-info {
    color: #718096;
    font-size: 0.85rem;
    margin: 3px 0;
}

.exact-match {
    display: inline-block;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-top: 8px;
    font-weight: 500;
}

.more-matches {
    text-align: center;
    color: #667eea;
    font-weight: 500;
    margin-top: 20px;
    font-style: italic;
}

/* Challenge Results 样式 */
.challenge-winner {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.challenge-winner h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.age-difference {
    font-size: 1.1rem;
    font-weight: 300;
}

.challenge-stats {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Tools Summary Page Styles */
.summary-intro {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.summary-intro h2 {
    margin-bottom: 15px;
    font-size: 2.2rem;
    font-weight: 600;
}

.summary-intro p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.tools-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.tool-summary-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.tool-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 20px 20px 0 0;
}

.tool-summary-card.primary::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tool-summary-card.secondary::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tool-summary-card.tertiary::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tool-summary-card.fun::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.tool-summary-card.special::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.tool-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tool-icon {
    font-size: 3rem;
    background: #f8fafc;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tool-header h3 {
    color: #2d3748;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    flex: 1;
}

.tool-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.tool-description p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.feature-list li {
    color: #2d3748;
    padding: 5px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-btn.secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.action-btn.tertiary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.action-btn.fun {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.action-btn.special {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.usage-count {
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
}

/* Feature Comparison Table */
.comparison-section {
    margin: 60px 0;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comparison-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 2rem;
}

.comparison-table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-comparison {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.feature-comparison th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-comparison td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.feature-comparison td:first-child {
    text-align: left;
    font-weight: 600;
    background: #f8fafc;
    color: #2d3748;
}

.feature-yes {
    background: #f0fff4;
    color: #22543d;
    font-weight: 500;
}

.feature-partial {
    background: #fffbf0;
    color: #744210;
    font-weight: 500;
}

.feature-no {
    background: #fff5f5;
    color: #742a2a;
    font-weight: 500;
}

/* Use Cases Section */
.use-cases-section {
    margin: 60px 0;
}

.use-cases-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2d3748;
    font-size: 2rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.use-case-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 5px solid #667eea;
}

.use-case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.use-case-card h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.use-case-card p {
    color: #4a5568;
    margin-bottom: 15px;
    font-weight: 600;
}

.use-case-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.use-case-card li {
    color: #4a5568;
    padding: 3px 0;
    font-size: 0.9rem;
}

.use-case-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.use-case-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    padding: 40px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 2rem;
}

.faq-container {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-item p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Statistics Section */
.stats-section {
    margin: 60px 0;
    text-align: center;
}

.stats-section h2 {
    margin-bottom: 40px;
    color: #2d3748;
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.9rem;
    color: #718096;
}

/* Responsive Design for Tools Summary */
@media (max-width: 768px) {
    .tools-overview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-summary-card {
        padding: 20px;
    }
    
    .tool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .tool-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-btn {
        min-width: auto;
        width: 100%;
    }
    
    .comparison-table-container {
        font-size: 0.8rem;
    }
    
    .feature-comparison th,
    .feature-comparison td {
        padding: 10px 8px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .summary-intro {
        padding: 20px;
    }
    
    .summary-intro h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .tool-summary-card {
        padding: 15px;
    }
    
    .tool-header h3 {
        font-size: 1.2rem;
    }
    
    .comparison-section {
        padding: 20px;
    }
    
    .feature-comparison {
        font-size: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .faq-section {
        padding: 20px;
    }
    
    .faq-item {
        padding: 20px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

/* Birthday Card 样式 */
.birthday-card {
    max-width: 500px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.card-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.action-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* Results Area 样式 */
.results-area {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.results-area h2 {
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.results-summary {
    text-align: center;
    margin-bottom: 25px;
}

.results-summary p {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.share-prompt {
    color: #718096;
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn, .copy-btn, .new-game-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover, .copy-btn:hover, .new-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Game Descriptions 样式 */
.detailed-games-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.game-description {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.game-description:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.game-description h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.description-content p {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.7;
}

.description-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.description-content li {
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Features Section 样式 */
.features-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    border-left: 4px solid #667eea;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
}

/* Tips Section 样式 */
.tips-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tip-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #48bb78;
}

.tip-item h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tip-item p {
    color: #718096;
    line-height: 1.6;
}

/* Toast 通知样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: transform 0.3s ease;
}

.toast.success {
    background: #48bb78;
}

.toast.error {
    background: #f56565;
}

/* 响应式设计 for Fun Games */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-card {
        padding: 25px;
    }
    
    .game-icon {
        font-size: 3rem;
        height: 60px;
    }
    
    .celebrity-matches {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid, .tips-content {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .challenger-section {
        padding: 15px;
    }
    
    .birthday-card {
        margin: 10px;
        padding: 20px !important;
    }
    
    .detailed-games-section, .features-section, .tips-section {
        padding: 25px;
        margin: 25px 0;
    }
}