/* 生肖详情页面样式 */

/* 生肖概览卡片 */
.zodiac-overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    color: white;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.zodiac-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.overview-icon {
    font-size: 8rem;
    line-height: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.overview-info h2 {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.basic-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.basic-info span {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.character-desc {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}

/* 年份筛选区域 */
.year-filter-section {
    margin-bottom: 40px;
}

.decade-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.decade-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.decade-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.decade-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

/* 年份卡片展示 */
.years-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.year-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.year-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.year-card .year-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.year-card .year-info {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.year-card .year-info div {
    margin: 5px 0;
}

/* 年龄详细对照表 */
.age-detail-section {
    margin-bottom: 40px;
}

.age-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.age-table thead {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.age-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.age-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.age-table tbody tr:hover {
    background-color: #f9fafb;
}

.age-table td {
    padding: 12px 15px;
    color: var(--text-secondary);
}

.age-table td strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 生肖信息卡片（复用weather-forecast的样式） */
.zodiac-info-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.zodiac-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.zodiac-info-card.info-card {
    text-align: left;
    color: white;
    border: none;
}

/* 9种渐变配色 */
.zodiac-info-card.info-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.zodiac-info-card.info-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.zodiac-info-card.info-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.zodiac-info-card.info-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.zodiac-info-card.info-card:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.zodiac-info-card.info-card:nth-child(6) {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.zodiac-info-card.info-card:nth-child(7) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.zodiac-info-card.info-card:nth-child(8) {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d3 100%);
}

.zodiac-info-card.info-card:nth-child(9) {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.zodiac-info-card.info-card h3 {
    text-align: center;
    color: white;
    font-size: 1.4em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.zodiac-info-card.info-card h3 span {
    font-size: 1.2em;
}

.zodiac-info-card.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zodiac-info-card.info-card li {
    background: rgba(255,255,255,0.1);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.zodiac-info-card.info-card li:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.zodiac-info-card.info-card li strong {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.zodiac-info-card.info-card p {
    background: rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: 8px;
    line-height: 1.6;
    margin: 0;
    backdrop-filter: blur(10px);
}

/* 生肖导航网格 */
.zodiac-navigation {
    margin: 40px 0;
}

.zodiac-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.zodiac-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.zodiac-nav-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.zodiac-nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.zodiac-nav-item .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.zodiac-nav-item .name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.zodiac-nav-item.active .name {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zodiac-overview-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .overview-icon {
        font-size: 5rem;
    }

    .overview-info h2 {
        font-size: 2rem;
    }

    .basic-info {
        justify-content: center;
    }

    .decade-selector {
        justify-content: center;
    }

    .years-display {
        grid-template-columns: 1fr;
    }

    .age-table {
        font-size: 0.85rem;
    }

    .age-table th,
    .age-table td {
        padding: 10px 8px;
    }

    .zodiac-nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .zodiac-nav-item .icon {
        font-size: 2rem;
    }

    .zodiac-nav-item .name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .zodiac-overview-card {
        padding: 20px 15px;
    }

    .overview-icon {
        font-size: 4rem;
    }

    .overview-info h2 {
        font-size: 1.5rem;
    }

    .basic-info span {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .decade-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .year-card {
        padding: 15px;
    }

    .year-card .year-number {
        font-size: 1.5rem;
    }

    .zodiac-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .zodiac-info-card {
        padding: 20px;
    }
}
