/* 子午流注页面样式 */

/* 中国风英雄区域 */
.chinese-hero {
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 50%, #8b4513 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.chinese-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="20" fill="rgba(255,255,255,0.1)">⏰</text></svg>') repeat;
    opacity: 0.3;
}

.chinese-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.chinese-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* 钟表容器 */
.clock-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin: 40px auto;
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

/* 传统钟表 */
.traditional-clock {
    position: relative;
    width: 300px;
    height: 300px;
}

.clock-face {
    width: 100%;
    height: 100%;
    border: 8px solid #8b4513;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    box-shadow: 
        0 0 0 4px #d2691e,
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* 十二时辰标记 */
.period-mark {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b4513, #d2691e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.period-mark:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.period-mark.active {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* 时辰标记位置 */
.zi-mark { transform: translate(-50%, -50%) rotate(0deg) translateY(-120px) rotate(0deg); }
.chou-mark { transform: translate(-50%, -50%) rotate(30deg) translateY(-120px) rotate(-30deg); }
.yin-mark { transform: translate(-50%, -50%) rotate(60deg) translateY(-120px) rotate(-60deg); }
.mao-mark { transform: translate(-50%, -50%) rotate(90deg) translateY(-120px) rotate(-90deg); }
.chen-mark { transform: translate(-50%, -50%) rotate(120deg) translateY(-120px) rotate(-120deg); }
.si-mark { transform: translate(-50%, -50%) rotate(150deg) translateY(-120px) rotate(-150deg); }
.wu-mark { transform: translate(-50%, -50%) rotate(180deg) translateY(-120px) rotate(-180deg); }
.wei-mark { transform: translate(-50%, -50%) rotate(210deg) translateY(-120px) rotate(-210deg); }
.shen-mark { transform: translate(-50%, -50%) rotate(240deg) translateY(-120px) rotate(-240deg); }
.you-mark { transform: translate(-50%, -50%) rotate(270deg) translateY(-120px) rotate(-270deg); }
.xu-mark { transform: translate(-50%, -50%) rotate(300deg) translateY(-120px) rotate(-300deg); }
.hai-mark { transform: translate(-50%, -50%) rotate(330deg) translateY(-120px) rotate(-330deg); }

/* 现代时间标记 */
.hour-mark {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(139, 69, 19, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    transform-origin: 50% 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 时钟指针 */
.clock-hands {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
}

.hand {
    position: absolute;
    background: #333;
    border-radius: 4px;
    transform-origin: bottom center;
    transition: transform 0.1s ease;
}

.hour-hand {
    width: 6px;
    height: 60px;
    background: linear-gradient(to top, #8b4513, #d2691e);
    top: -60px;
    left: -3px;
    border-radius: 3px;
}

.minute-hand {
    width: 4px;
    height: 80px;
    background: linear-gradient(to top, #666, #999);
    top: -80px;
    left: -2px;
    border-radius: 2px;
}

.second-hand {
    width: 2px;
    height: 90px;
    background: linear-gradient(to top, #e74c3c, #c0392b);
    top: -90px;
    left: -1px;
    border-radius: 1px;
}

.center-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #8b4513, #d2691e);
    border-radius: 50%;
    top: -6px;
    left: -6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 数字时间显示 */
.digital-time {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 250px;
}

.current-time {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.time-display {
    margin-bottom: 15px;
}

#current-time {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffd700;
}

.date-display {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 时辰系统 */
.time-system {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.current-period {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 5px solid #8b4513;
}

.current-period h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #8b4513;
    font-weight: 700;
}

.next-period {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 5px solid #d2691e;
}

.next-period h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #d2691e;
    font-weight: 600;
}

.period-info {
    text-align: center;
}

.period-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b4513;
    margin-bottom: 10px;
}

.period-time {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.period-organ {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b4513, #d2691e);
    color: white;
    border-radius: 25px;
    display: inline-block;
}

/* 十二时辰对照表 */
.twelve-periods {
    padding: 60px 20px;
    background: white;
}

.twelve-periods h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    font-weight: 700;
}

.periods-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.period-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.period-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #8b4513;
}

.period-card.current {
    border-color: #ffd700;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
}

.period-header {
    background: linear-gradient(135deg, #8b4513, #d2691e);
    color: white;
    padding: 15px;
    text-align: center;
}

.period-header h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.time-range {
    font-size: 0.8rem;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
}

.period-content {
    padding: 15px;
}

.organ-info {
    margin-bottom: 15px;
}

.organ-info h4 {
    font-size: 1rem;
    color: #8b4513;
    margin-bottom: 5px;
    font-weight: 600;
}

.organ-info p {
    color: #666;
    line-height: 1.4;
    font-size: 0.85rem;
}

.health-tips h5 {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.health-tips ul {
    list-style: none;
    padding: 0;
}

.health-tips li {
    color: #666;
    line-height: 1.3;
    margin-bottom: 4px;
    padding-left: 15px;
    position: relative;
    font-size: 0.8rem;
}

.health-tips li::before {
    content: '•';
    color: #8b4513;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 养生建议区域 */
.health-advice {
    padding: 60px 20px;
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    color: white;
}

.health-advice h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.advice-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.advice-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.advice-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.advice-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chinese-title {
        font-size: 2.5rem;
    }

    .chinese-subtitle {
        font-size: 1.2rem;
    }

    #current-time {
        font-size: 2.5rem;
    }

    /* 移动端钟表布局 */
    .clock-container {
        flex-direction: column;
        gap: 30px;
        margin: 20px auto;
    }
    
    .traditional-clock {
        width: 250px;
        height: 250px;
    }
    
    .clock-face {
        border-width: 6px;
    }
    
    .period-mark {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* 调整时辰标记位置 */
    .zi-mark { transform: translate(-50%, -50%) rotate(0deg) translateY(-100px) rotate(0deg); }
    .chou-mark { transform: translate(-50%, -50%) rotate(30deg) translateY(-100px) rotate(-30deg); }
    .yin-mark { transform: translate(-50%, -50%) rotate(60deg) translateY(-100px) rotate(-60deg); }
    .mao-mark { transform: translate(-50%, -50%) rotate(90deg) translateY(-100px) rotate(-90deg); }
    .chen-mark { transform: translate(-50%, -50%) rotate(120deg) translateY(-100px) rotate(-120deg); }
    .si-mark { transform: translate(-50%, -50%) rotate(150deg) translateY(-100px) rotate(-150deg); }
    .wu-mark { transform: translate(-50%, -50%) rotate(180deg) translateY(-100px) rotate(-180deg); }
    .wei-mark { transform: translate(-50%, -50%) rotate(210deg) translateY(-100px) rotate(-210deg); }
    .shen-mark { transform: translate(-50%, -50%) rotate(240deg) translateY(-100px) rotate(-240deg); }
    .you-mark { transform: translate(-50%, -50%) rotate(270deg) translateY(-100px) rotate(-270deg); }
    .xu-mark { transform: translate(-50%, -50%) rotate(300deg) translateY(-100px) rotate(-300deg); }
    .hai-mark { transform: translate(-50%, -50%) rotate(330deg) translateY(-100px) rotate(-330deg); }
    
    .hour-mark {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        transform-origin: 50% 100px;
    }
    
    .hour-hand {
        height: 50px;
        top: -50px;
        width: 5px;
        left: -2.5px;
    }
    
    .minute-hand {
        height: 65px;
        top: -65px;
        width: 3px;
        left: -1.5px;
    }
    
    .second-hand {
        height: 75px;
        top: -75px;
        width: 2px;
        left: -1px;
    }
    
    .digital-time {
        min-width: 200px;
        padding: 20px;
    }

    .time-system {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 15px;
    }

    .current-period,
    .next-period {
        padding: 30px 20px;
    }

    .current-period h2 {
        font-size: 1.8rem;
    }

    .period-name {
        font-size: 2rem;
    }

    .twelve-periods h2 {
        font-size: 2rem;
    }

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

    .period-header h3 {
        font-size: 1.5rem;
    }

    .period-content {
        padding: 25px 20px;
    }

    .health-advice h2 {
        font-size: 2rem;
    }

    .advice-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .chinese-title {
        font-size: 2rem;
    }

    #current-time {
        font-size: 2rem;
    }

    .current-time {
        padding: 20px;
    }

    .period-name {
        font-size: 1.8rem;
    }

    .period-organ {
        font-size: 1rem;
        padding: 8px 15px;
    }

    .periods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .period-header h3 {
        font-size: 1rem;
    }

    .period-content {
        padding: 10px;
    }

    .organ-info h4 {
        font-size: 0.9rem;
    }

    .health-tips h5 {
        font-size: 0.8rem;
    }

    .health-tips li {
        font-size: 0.75rem;
    }
}

/* 动画效果 */
@keyframes timePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

#current-time {
    animation: timePulse 2s ease-in-out infinite;
}

/* 当前时辰高亮效果 */
.period-card.current .period-header {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.period-card.current .organ-info h4 {
    color: #ffd700;
}

/* 页面加载动画 */
.period-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.period-card:nth-child(1) { animation-delay: 0.1s; }
.period-card:nth-child(2) { animation-delay: 0.2s; }
.period-card:nth-child(3) { animation-delay: 0.3s; }
.period-card:nth-child(4) { animation-delay: 0.4s; }
.period-card:nth-child(5) { animation-delay: 0.5s; }
.period-card:nth-child(6) { animation-delay: 0.6s; }
.period-card:nth-child(7) { animation-delay: 0.7s; }
.period-card:nth-child(8) { animation-delay: 0.8s; }
.period-card:nth-child(9) { animation-delay: 0.9s; }
.period-card:nth-child(10) { animation-delay: 1.0s; }
.period-card:nth-child(11) { animation-delay: 1.1s; }
.period-card:nth-child(12) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 钟表动画效果 */
@keyframes periodGlow {
    0%, 100% { 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
        transform: scale(1.05);
    }
}

.period-mark.active {
    animation: periodGlow 2s ease-in-out infinite;
}

/* 时钟指针平滑动画 */
.hand {
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 钟表加载动画 */
.traditional-clock {
    animation: fadeInUp 1s ease-out;
}

.clock-face {
    animation: fadeInUp 1.2s ease-out;
}

.period-mark {
    animation: fadeInUp 1.5s ease-out;
}

.period-mark:nth-child(1) { animation-delay: 0.1s; }
.period-mark:nth-child(2) { animation-delay: 0.2s; }
.period-mark:nth-child(3) { animation-delay: 0.3s; }
.period-mark:nth-child(4) { animation-delay: 0.4s; }
.period-mark:nth-child(5) { animation-delay: 0.5s; }
.period-mark:nth-child(6) { animation-delay: 0.6s; }
.period-mark:nth-child(7) { animation-delay: 0.7s; }
.period-mark:nth-child(8) { animation-delay: 0.8s; }
.period-mark:nth-child(9) { animation-delay: 0.9s; }
.period-mark:nth-child(10) { animation-delay: 1.0s; }
.period-mark:nth-child(11) { animation-delay: 1.1s; }
.period-mark:nth-child(12) { animation-delay: 1.2s; } 