/* 时间工具通用样式 */
.tool-page-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 20px;
}

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

/* 头部区域 */
.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-title i {
    color: #667eea;
}

.page-description {
    font-size: 18px;
    color: #7f8c8d;
}

/* 主内容区域 */
.tool-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

@media (max-width: 992px) {
    .tool-content {
        grid-template-columns: 1fr;
    }
}

/* 表单卡片 */
.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-card h2 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-card h2 i {
    color: #667eea;
}

.tool-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 快捷按钮 */
.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
}

.quick-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* 结果卡片 */
.result-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-card h2 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-card h2 i {
    color: #667eea;
}

/* 结果高亮 */
.result-highlight {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 20px;
}

.highlight-number {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.highlight-range {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 结果网格 */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.result-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.item-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.item-label {
    font-size: 14px;
    color: #7f8c8d;
}

/* 结果详情 */
.result-details {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-row span {
    color: #7f8c8d;
}

.detail-row strong {
    color: #2c3e50;
}

.detail-row .past {
    color: #e74c3c;
}

.detail-row .future {
    color: #27ae60;
}

/* 年龄显示 */
.age-display {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 20px;
}

.age-number {
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.age-number .years {
    font-size: 72px;
}

.age-number .unit {
    font-size: 24px;
    margin-left: 8px;
}

.age-detail {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.info-item {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.info-item i {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 8px;
}

.info-item span {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.info-item strong {
    display: block;
    font-size: 16px;
    color: #2c3e50;
}

/* 倒计时显示 */
.countdown-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .countdown-display {
        grid-template-columns: repeat(2, 1fr);
    }
}

.countdown-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.countdown-item .value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.countdown-item .label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.countdown-finished {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 8px;
    color: #fff;
}

.countdown-finished i {
    font-size: 48px;
    margin-bottom: 16px;
}

.countdown-finished h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.countdown-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.countdown-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: #2c3e50;
}

.countdown-info i {
    color: #667eea;
}

/* 时区转换结果 */
.timezone-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.timezone-result .original-time {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.timezone-result .conversion-arrow {
    font-size: 24px;
    color: #fff;
    margin: 16px 0;
}

.timezone-result .converted-time {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.timezone-result .timezone-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 时区转换结果 */
.timezone-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.timezone-result .original-time {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.timezone-result .conversion-arrow {
    font-size: 24px;
    color: #fff;
    margin: 16px 0;
}

.timezone-result .converted-time {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.timezone-result .timezone-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 时区比较 */
.timezone-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.timezone-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 200px;
}

.timezone-box.target {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.timezone-box .tz-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.timezone-box.target .tz-label {
    color: rgba(255, 255, 255, 0.9);
}

.timezone-box .tz-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.timezone-box.target .tz-name {
    color: #fff;
}

.timezone-box .tz-time {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #667eea;
}

.timezone-box.target .tz-time {
    color: #fff;
}

.timezone-box .tz-offset {
    font-size: 12px;
    color: #7f8c8d;
}

.timezone-box.target .tz-offset {
    color: rgba(255, 255, 255, 0.8);
}

.timezone-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-size: 24px;
}

.timezone-arrow span {
    font-size: 12px;
    color: #7f8c8d;
}

/* 格式化结果 */
.format-result {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.format-result .format-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.format-result .format-value {
    font-size: 16px;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* 格式化输出 */
.format-output {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.output-main {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.output-template {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 其他格式 */
.format-alternatives h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 16px;
}

.alt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.alt-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
}

.alt-item span {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.alt-item code {
    display: block;
    font-size: 14px;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    background: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    word-break: break-all;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3 i {
    color: #667eea;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
}

.related-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-tool {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
}

.related-tool:hover {
    background: #667eea;
    color: #fff;
    transform: translateX(4px);
}

.related-tool i {
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .page-description {
        font-size: 16px;
    }
    
    .form-card,
    .result-card,
    .sidebar-card {
        padding: 20px;
    }
    
    .highlight-number {
        font-size: 36px;
    }
    
    .age-number {
        font-size: 48px;
    }
    
    .age-number .years {
        font-size: 56px;
    }
}

/* 农历日历样式 */
.date-main {
    background: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.date-display {
    margin-bottom: 20px;
}

.solar-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.date-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.date-weekday {
    font-size: 16px;
    opacity: 0.9;
}

.lunar-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lunar-year {
    font-size: 18px;
    opacity: 0.9;
}

.lunar-month-day {
    font-size: 24px;
    font-weight: 600;
}

.zodiac-display {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.zodiac-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.zodiac-item i {
    font-size: 20px;
}

.zodiac-item span {
    font-size: 12px;
    opacity: 0.8;
}

.zodiac-item strong {
    font-size: 16px;
    font-weight: 600;
}

.solar-term-card,
.holiday-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.term-icon,
.holiday-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.term-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
}

.holiday-icon {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: #fff;
}

.term-info,
.holiday-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.term-label,
.holiday-type {
    font-size: 12px;
    color: #7f8c8d;
}

.term-name,
.holiday-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.huangli-section {
    margin-top: 24px;
}

.huangli-section h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.huangli-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .huangli-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.huangli-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.huangli-item span {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.huangli-item strong {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.yi-ji-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.yi-section,
.ji-section {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
}

.yi-section h4,
.ji-section h4 {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yi-section h4 {
    color: #27ae60;
}

.ji-section h4 {
    color: #e74c3c;
}

.yi-list,
.ji-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yi-item,
.ji-item {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.yi-item {
    background: #d4edda;
    color: #155724;
}

.ji-item {
    background: #f8d7da;
    color: #721c24;
}

.lucky-section {
    margin-top: 24px;
}

.lucky-section h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

@media (max-width: 600px) {
    .lucky-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lucky-item {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    color: #5d4e37;
}

.lucky-item span {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.lucky-item strong {
    font-size: 16px;
    font-weight: 700;
}

.holidays-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.holiday-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
}

.holiday-date {
    font-size: 14px;
    color: #7f8c8d;
}

.holiday-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.holiday-type-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.holiday-type-badge.节假日 {
    background: #e91e63;
    color: #fff;
}

.holiday-type-badge.调休 {
    background: #ff9800;
    color: #fff;
}

.solar-terms {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solar-terms li {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.8;
}
