﻿/* 宫崎骏风格的配色和设计 */
:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --primary-light: #6ba7e8;
    --accent-color: #f39c12;
    --accent-dark: #d68910;
    --text-color: #2c3e50;
    --text-light: #34495e;
    --background-color: #f0f9ff;
    --miyazaki-green: #8bc34a;
    --miyazaki-green-dark: #7ab03c;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #f5b041);
}

body {
    margin: 0;
    padding: 0;
    font-family: "Hiragino Kaku Gothic Pro", "メイリオ", sans-serif;
    background: var(--background-color);
    /* background-image: url('./haer_sufei.jpeg'); */
    background:linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('./haerSufei.jpeg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-color);
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-title {
    text-align: center;
    font-size: 2.5em;
    margin: 40px 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.navigation-links {
    text-align: center;
    margin-bottom: 40px;
}

.nav-link {
    display: inline-block;
    margin: 10px;
    padding: 12px 25px;
    text-decoration: none;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-accent);
}

.content-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding: 0 0px;
    justify-content: space-between;
    max-width: 1400px;
}

/* 天气区域样式 */
.weather-section {
    flex: 0 1 500px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-left: 0px;
}

.weather-section h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
    position: relative;
    padding-bottom: 15px;
}

.weather-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.weather-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.city-weather {
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.city-weather:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.city-weather h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 1.4em;
    position: relative;
    padding-bottom: 10px;
}

.city-weather h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
}

.weather-day {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
    box-shadow: var(--shadow-sm);
}

.weather-day:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.weather-day .date {
    flex: 1.5;
    font-size: 0.95em;
    color: var(--text-color);
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-day .weather-icon {
    flex: 0.6;
    font-size: 1.8em;
    margin: 0 15px;
    color: var(--accent-color);
}

.weather-day .temp {
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 10px;
}

.weather-day .text {
    flex: 1;
    text-align: right;
    color: var(--text-color);
    padding-right: 10px;
}

.weather-day:last-child {
    margin-bottom: 0;
}

/* 时钟和日历区域样式 */
.time-section {
    flex: 0 1 500px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-right: 0px;
}

/* 时钟容器调整 */
.clock-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 80px;
}

/* 时钟样式 */
.clock {
    width: 260px;
    height: 260px;
    border: none;
    border-radius: 50%;
    margin: 0;
    margin-bottom: 30px;
    position: relative;
    background: white;
    box-shadow: 
        var(--shadow-lg),
        inset 0 0 20px rgba(0, 0, 0, 0.1),
        0 0 0 15px var(--card-bg),
        0 0 0 16px var(--primary-color);
}

.clock-face {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 时钟数字 */
.dial {
    position: absolute;
    font-size: 1.6em;
    font-weight: bold;
    color: var(--text-color);
    width: auto;
    height: auto;
    line-height: normal;
    text-align: center;
    z-index: 2;
    transform: translate(-50%, -50%);
}

/* 时钟数字位置 - 使用三角函数计算位置，半径缩小 */
.hour-12 { top: 45px; left: 130px; }
.hour-1 { top: 60px; left: 180px; }
.hour-2 { top: 95px; left: 220px; }
.hour-3 { top: 130px; left: 230px; }
.hour-4 { top: 165px; left: 220px; }
.hour-5 { top: 200px; left: 180px; }
.hour-6 { top: 215px; left: 130px; }
.hour-7 { top: 200px; left: 80px; }
.hour-8 { top: 165px; left: 40px; }
.hour-9 { top: 130px; left: 30px; }
.hour-10 { top: 95px; left: 40px; }
.hour-11 { top: 60px; left: 80px; }

/* 时钟刻度 */
.clock-face::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: 30px;
    left: 30px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 2deg,
        rgba(0, 0, 0, 0.05) 2deg 4deg,
        transparent 4deg 30deg
    );
}

/* 时钟指针 */
.hand {
    position: absolute;
    bottom: 130px;
    left: 130px;
    transform-origin: 50% 100%;
    border-radius: 50px;
    z-index: 3;
}

.hour-hand {
    width: 8px;
    height: 55px;
    background: var(--text-color);
    transform-origin: 50% 100%;
}

.minute-hand {
    width: 6px;
    height: 75px;
    background: var(--primary-color);
    transform-origin: 50% 100%;
}

.second-hand {
    width: 2px;
    height: 85px;
    background: var(--accent-color);
    transform-origin: 50% 100%;
}

/* 时钟中心点 */
.center-dot {
    position: absolute;
    top: 130px;
    left: 130px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* 时钟外圈装饰 */
.clock::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        transparent 65%,
        rgba(74, 144, 226, 0.1) 66%,
        rgba(74, 144, 226, 0.2) 100%
    );
    z-index: -1;
}

/* 时钟内圈装饰 */
.clock::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.8) 100%
    );
    z-index: 1;
}

/* 日历样式更新 */
.calendar-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.calendar-selectors {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.date-select {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: white;
    color: var(--text-color);
    font-size: 1.1em;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.date-select:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.calendar-navigation {
    display: none;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 10px 0;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 8px;
}

.weekdays div {
    color: var(--text-color);
    font-size: 1.1em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 8px;
}

.calendar-grid div {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-grid div:not(:empty) {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
}

.calendar-grid div:not(:empty):hover {
    background: var(--primary-light);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.calendar-grid .weekend {
    color: #e74c3c;
    font-weight: bold;
}

.calendar-grid .current-day {
    background: rgba(74, 144, 226, 0.15);
    color: var(--primary-color);
    font-weight: bold;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    border: 2px solid var(--primary-color);
}

.calendar-grid .current-day:hover {
    background: rgba(74, 144, 226, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

.calendar-container {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 400px;
    margin-left: auto;
}

/* 当前时间显示样式 */
.current-time-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 400px;
    margin-left: auto;
}

.current-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    width: 100%;
}

.date-display {
    font-size: 0.7em;
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    margin-bottom: 5px;
}

.time-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    position: relative;
    min-width: 60px;
}

.time-unit:not(:last-child)::after {
    content: ':';
    position: absolute;
    right: -12px;
    color: var(--primary-color);
    font-weight: bold;
    animation: blink 1s infinite;
}

.time-label {
    font-size: 0.4em;
    margin-top: 5px;
    text-transform: uppercase;
    opacity: 0.8;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.time-unit .value {
    position: relative;
    overflow: hidden;
}

.time-unit .value span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.time-unit:hover .value span {
    transform: scale(1.1);
} 