html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    background-color: #f5f7fa;
    color: #222;
    line-height: 1.5;
}
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 12px 40px;
}
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #222;
    font-size: 17px;
    font-weight: 700;
}
.brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg,#2563eb,#7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: 0.15s;
}
.nav-links a:hover {
    background: #eef2ff;
    color: #2563eb;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #333;
}
@media (max-width:768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px 12px 12px;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        padding: 11px 14px;
    }
}
.card {
    background:#fff;
    border-radius:8px;
    padding:16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.section {
    margin-top: 18px;
}
.section-title-lg {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}
.section-sub {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
.note {
    margin-top: 14px;
    font-size: 13px;
    color: #555;
}
.note ul {
    padding-left: 18px;
    margin-top: 4px;
}
.hero {
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    color:#fff;
    border-radius:14px;
    padding:32px 24px;
    text-align:center;
    margin-bottom:8px;
}
.hero-label {
    font-size:13px;
    opacity:0.85;
    letter-spacing:1px;
}
.hero h1 {
    font-size:56px;
    font-weight:800;
    line-height:1.1;
    margin:8px 0 4px;
    font-variant-numeric:tabular-nums;
    letter-spacing:2px;
}
.hero p {
    font-size:15px;
    opacity:0.92;
}
.null-hint {
    color:#999;
    font-size:13px;
    padding:16px 0;
    text-align:center;
}
.ctrl-row {
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    align-items:center;
    margin:4px 0 14px;
}
.add-cell {
    display:flex;
    gap:8px;
    flex:1;
    min-width:220px;
}
.add-cell select {
    flex:1;
    padding:9px 10px;
    border:1px solid #d1d5db;
    border-radius:6px;
    font-size:14px;
    background:#fff;
}
.toggle-cell {
    flex-shrink:0;
}
.btn {
    background:#2563eb;
    color:#fff;
    border:none;
    padding:9px 16px;
    border-radius:6px;
    cursor:pointer;
    font-size:14px;
}
.btn:hover {
    background:#1d4ed8;
}
.btn-outline {
    background:#fff;
    color:#2563eb;
    border:1px solid #2563eb;
}
.btn-outline:hover {
    background:#eff6ff;
}
.clock-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:12px;
}
.clock-card {
    position:relative;
    background:linear-gradient(180deg,#ffffff,#f8fafc);
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:14px 16px;
    overflow:hidden;
}
.clock-card.dark {
    background:linear-gradient(180deg,#0f172a,#1e293b);
    border-color:#334155;
    color:#e2e8f0;
}
.cc-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}
.cc-city {
    font-size:15px;
    font-weight:700;
}
.cc-region {
    font-size:12px;
    color:#888;
    margin-top:1px;
}
.clock-card.dark .cc-region {
    color:#94a3b8;
}
.cc-day {
    font-size:15px;
    flex-shrink:0;
}
.cc-time {
    margin-top:12px;
    font-size:32px;
    font-weight:800;
    line-height:1;
    font-variant-numeric:tabular-nums;
    letter-spacing:0.5px;
}
.cc-time .sec {
    font-size:18px;
    opacity:0.6;
    margin-left:2px;
}
.cc-date {
    margin-top:8px;
    font-size:12px;
    color:#666;
}
.clock-card.dark .cc-date {
    color:#94a3b8;
}
.cc-foot {
    margin-top:10px;
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    color:#777;
}
.clock-card.dark .cc-foot {
    color:#94a3b8;
}
.cc-badge {
    background:#eef2ff;
    color:#2563eb;
    border-radius:999px;
    padding:2px 9px;
    font-size:11px;
    font-weight:600;
}
.clock-card.dark .cc-badge {
    background:#334155;
    color:#93c5fd;
}
.cc-remove {
    position:absolute;
    top:8px;
    right:8px;
    width:24px;
    height:24px;
    border:none;
    background:none;
    color:#aaa;
    cursor:pointer;
    font-size:14px;
    line-height:1;
    border-radius:6px;
}
.cc-remove:hover {
    color:#ef4444;
    background:#fee2e2;
}
.clock-card.dark .cc-remove:hover {
    background:#7f1d1d;
    color:#fca5a5;
}
@media (max-width:768px) {
    .hero {
        padding:24px 18px;
    }
    .hero h1 {
        font-size:44px;
    }
    .cc-time {
        font-size:28px;
    }
}
