 :root {
            --bg: #f1f5f9;
            --surface: #ffffff;
            --surface-2: #f8fafc;
            --border: #e2e8f0;
            --text: #0f172a;
            --text-muted: #64748b;
            --primary: #0d9488;
            --primary-dark: #0f766e;
            --primary-light: #ccfbf1;
            --accent: #f59e0b;
            --hero-from: #0f172a;
            --hero-mid: #134e4a;
            --hero-to: #0d9488;
            --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
            --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.12);
            --radius: 14px;
        }

        * {
            box-sizing: border-box;
        }

        body {
            background: var(--bg);
            min-height: 100vh;
            font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--text);
            margin: 0;
        }

        /* ── Hero ── */
        .hero {
            background: linear-gradient(145deg, var(--hero-from) 0%, var(--hero-mid) 55%, var(--hero-to) 100%);
            padding: 48px 0 56px;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
            pointer-events: none;
        }

        .hero-inner {
            position: relative;
            z-index: 1;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            padding: 5px 14px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.85);
            margin-bottom: 16px;
        }

        .hero-badge .dot {
            width: 7px;
            height: 7px;
            background: #34d399;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
                transform: scale(1);
            }

            50% {
                opacity: 0.5;
                transform: scale(0.85);
            }
        }

        .hero h1 {
            font-size: 28px;
            font-weight: 700;
            color: #fff;
            margin: 0 0 8px;
            letter-spacing: -0.02em;
        }

        .hero-desc {
            color: rgba(255, 255, 255, 0.72);
            font-size: 14px;
            margin: 0 0 32px;
        }

        .hero-clock {
            text-align: center;
            margin-bottom: 28px;
        }

        .hero-clock-time {
            font-size: clamp(36px, 7vw, 56px);
            font-weight: 700;
            color: #fff;
            font-family: "Consolas", "SF Mono", "Monaco", monospace;
            letter-spacing: 0.04em;
            line-height: 1.1;
            text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
        }

        .hero-clock-date {
            font-size: 15px;
            color: rgba(255, 255, 255, 0.65);
            margin-top: 8px;
        }

        .hero-ts-row {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .hero-ts-chip {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 10px;
            padding: 10px 18px;
            text-align: center;
            min-width: 160px;
            backdrop-filter: blur(4px);
        }

        .hero-ts-chip .chip-label {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 4px;
        }

        .hero-ts-chip .chip-value {
            font-size: 17px;
            font-weight: 600;
            color: #fff;
            font-family: "Consolas", "Monaco", monospace;
        }

        /* ── Main layout ── */
        .main-wrap {
            max-width: 1140px;
            margin: -28px auto 0;
            padding: 0 15px 40px;
            position: relative;
            z-index: 2;
        }

        .section-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text);
            margin: 0 0 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title .fa {
            color: var(--primary);
            font-size: 15px;
        }

        .section-title small {
            font-size: 12px;
            font-weight: 400;
            color: var(--text-muted);
            margin-left: 4px;
        }

        /* ── World clocks ── */
        .world-section {
            background: var(--surface);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            padding: 22px 22px 8px;
            margin-bottom: 20px;
            border: 1px solid var(--border);
        }

        .world-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 12px;
        }

        .world-card {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 14px 12px;
            text-align: center;
            transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
            cursor: default;
        }

        .world-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
            border-color: var(--primary);
        }

        .world-card.is-local {
            background: var(--primary-light);
            border-color: #99f6e4;
        }

        .world-flag {
            font-size: 22px;
            line-height: 1;
            margin-bottom: 6px;
        }

        .world-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .world-city {
            font-size: 11px;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .world-time {
            font-size: 18px;
            font-weight: 700;
            font-family: "Consolas", "Monaco", monospace;
            color: var(--primary-dark);
            letter-spacing: 0.02em;
        }

        .world-date {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .world-offset {
            display: inline-block;
            font-size: 10px;
            color: var(--text-muted);
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 4px;
            padding: 1px 6px;
            margin-top: 6px;
        }

        /* ── Tool cards ── */
        .tool-card {
            background: var(--surface);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            margin-bottom: 20px;
            overflow: hidden;
        }

        .tool-card-head {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .tool-card-icon {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: var(--primary-light);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            flex-shrink: 0;
        }

        .tool-card-icon.orange {
            background: #fef3c7;
            color: #d97706;
        }

        .tool-card-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--text);
            margin: 0;
        }

        .tool-card-body {
            padding: 20px;
        }

        .form-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 7px;
        }

        .form-control {
            border-radius: 8px;
            border-color: var(--border);
            box-shadow: none;
            height: 40px;
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
        }

        .btn-action {
            background: var(--primary);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            padding: 10px 20px;
            width: 100%;
            transition: background 0.2s, transform 0.15s;
            margin-top: 16px;
        }

        .btn-action:hover,
        .btn-action:focus {
            background: var(--primary-dark);
            color: #fff;
            transform: translateY(-1px);
        }

        .btn-action:disabled {
            opacity: 0.6;
            transform: none;
        }

        .unit-pills {
            display: flex;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 3px;
            margin-bottom: 16px;
        }

        .unit-pills .pill {
            flex: 1;
            border: none;
            background: transparent;
            border-radius: 6px;
            padding: 7px 10px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-muted);
            transition: all 0.2s;
        }

        .unit-pills .pill.active {
            background: var(--surface);
            color: var(--primary-dark);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
            font-weight: 600;
        }

        .result-panel {
            margin-top: 16px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
            display: none;
        }

        .result-panel.show {
            display: block;
        }

        .result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            border-bottom: 1px solid var(--border);
            font-size: 13px;
        }

        .result-item:last-child {
            border-bottom: none;
        }

        .result-item .ri-label {
            color: var(--text-muted);
        }

        .result-item .ri-value {
            font-family: "Consolas", "Monaco", monospace;
            font-weight: 600;
            color: var(--text);
            text-align: right;
            max-width: 60%;
            word-break: break-all;
        }

        /* ── Format section ── */
        .format-bar {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
        }

        .format-bar .form-control {
            flex: 1;
        }

        .btn-now {
            white-space: nowrap;
            background: var(--accent);
            border: none;
            color: #fff;
            border-radius: 8px;
            padding: 0 18px;
            font-size: 13px;
            font-weight: 600;
            height: 40px;
            transition: opacity 0.2s;
        }

        .btn-now:hover {
            opacity: 0.88;
            color: #fff;
        }

        .format-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .fmt-cell .fmt-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 5px;
        }

        .fmt-cell .fmt-value {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 9px 12px;
            font-family: "Consolas", "Monaco", monospace;
            font-size: 12px;
            color: var(--text);
            min-height: 38px;
            word-break: break-all;
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s;
        }

        .fmt-cell .fmt-value:hover {
            background: var(--primary-light);
            border-color: #99f6e4;
        }

        .fmt-cell .fmt-value.empty {
            color: #cbd5e1;
        }

        /* ── SEO ── */
        .seo-block {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 24px 28px;
            margin-top: 4px;
            line-height: 1.85;
            box-shadow: var(--shadow);
        }

        .seo-block h2 {
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
            margin: 0 0 12px;
        }

        .seo-block h3 {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-muted);
            margin: 18px 0 8px;
        }

        .seo-block p {
            font-size: 14px;
            color: var(--text-muted);
            margin: 0 0 10px;
        }

        .seo-block code {
            background: var(--surface-2);
            padding: 1px 6px;
            border-radius: 4px;
            font-size: 13px;
            color: var(--primary-dark);
        }

        /* ── Footer ── */
        .site-footer {
            text-align: center;
            padding: 24px 20px 32px;
            color: var(--text-muted);
            font-size: 13px;
        }

        .site-footer a {
            color: var(--primary);
        }

        .input-group-datetime .input-group-addon {
            cursor: pointer;
            background: var(--surface);
            border-color: var(--border);
        }

        .tool-card {
            position: relative;
            overflow: visible;
        }

        .bootstrap-datetimepicker-widget {
            z-index: 99999 !important;
        }

        .bootstrap-datetimepicker-widget.dropdown-menu {
            z-index: 99999 !important;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
        }

        @media (max-width: 991px) {
            .world-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .format-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 575px) {
            .hero {
                padding: 36px 0 48px;
            }

            .hero h1 {
                font-size: 22px;
            }

            .world-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .format-grid {
                grid-template-columns: 1fr;
            }

            .format-bar {
                flex-direction: column;
            }

            .hero-ts-chip {
                min-width: 130px;
            }
        }