@charset "UTF-8";

/* --- Global Styles --- */
:root {
    --primary-color: #00aaff; /* Bright cyan for highlights */
    --background-color: #0a0a1a; /* Deep dark blue */
    --text-color: #e0e0e0; /* Light grey for text */
    --glow-color: rgba(0, 170, 255, 0.8);
    --scanline-bg: #000;
    --scanline-color: rgba(0, 255, 255, 0.05);
    --font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 20px 0;
    overflow-x: hidden; /* Only hide horizontal scrollbar */
    overflow-y: auto; /* Allow vertical scrolling */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center to flex-start */
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at center, rgba(10, 20, 40, 0.8), transparent 70%),
        repeating-linear-gradient(0deg, var(--scanline-color) 0, var(--scanline-color) 1px, transparent 1px, transparent 3px);
    background-size: 100% 100%, 100% 3px;
    background-attachment: fixed; /* Keep background fixed during scroll */
}

/* --- Scanline Animation --- */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Use viewport height instead of 100% */
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(20, 20, 30, 0), rgba(20, 20, 30, 0.8) 50%, rgba(20, 20, 30, 0));
    animation: scan 7s linear infinite;
    opacity: 0.3;
    z-index: 0; /* Ensure it stays behind content */
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* --- Main Container --- */
.container {
    width: 90%;
    max-width: 1000px;
    padding: 2rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: rgba(10, 10, 26, 0.6);
    box-shadow: 0 0 25px var(--glow-color);
    backdrop-filter: blur(5px);
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
    margin: 2rem auto; /* Add margin for better spacing */
    position: relative; /* Ensure proper positioning */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 26, 0.3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), rgba(0, 170, 255, 0.6));
    border-radius: 6px;
    border: 2px solid rgba(10, 10, 26, 0.3);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.9), var(--primary-color));
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(10, 10, 26, 0.3);
}

/* --- Header --- */
header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 1rem;
}

#main-title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #dff7ff;
    background: linear-gradient(90deg, #7fd8ff 0%, #dff7ff 45%, #8be8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 6px rgba(0, 170, 255, 0.18), 0 0 18px rgba(0, 170, 255, 0.12);
    animation: titlePulse 6s ease-in-out infinite;
}

#main-title::before {
    content: '';
    position: absolute;
    left: -0.2em;
    right: -0.2em;
    bottom: -0.15em;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 170, 255, 0.7), transparent);
    opacity: 0.45;
    transform-origin: center;
    animation: titleUnderline 5.5s ease-in-out infinite;
}

/* --- Info Panels --- */
.info-panels {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: minmax(270px, 0.95fr) minmax(0, 1.75fr);
    grid-template-rows: auto auto auto;
    gap: 1rem;
    align-items: start;
}

/* --- Calendar Display --- */
.calendar-display {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 6px;
    backdrop-filter: blur(3px);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 0;
}

.calendar-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.3);
    border-color: var(--primary-color);
}

.calendar-display:hover::after {
    
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--primary-color);
    opacity: 0.8;
    white-space: nowrap;
}

.date-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.date-main {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--glow-color);
    font-family: var(--font-family);
    letter-spacing: 1px;
}

.date-details {
    font-size: 1rem;
    color: var(--text-color);
    font-family: var(--font-family);
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.lunar-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-family);
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

.lunar-label {
    color: var(--primary-color);
    opacity: 0.8;
}

.date-details .separator,
.lunar-info .separator {
    margin: 0 0.5rem;
    color: var(--primary-color);
    opacity: 0.6;
}

.date-details span:not(.separator),
.lunar-info span:not(.separator):not(.lunar-label) {
    color: var(--text-color);
    text-shadow: 0 0 3px rgba(0, 170, 255, 0.3);
}

/* --- IP Display --- */
.ip-display {
    grid-column: 1 / span 2;
    grid-row: 3;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(102, 255, 214, 0.22);
    border-radius: 6px;
    backdrop-filter: blur(3px);
    box-shadow: 0 0 18px rgba(0, 255, 200, 0.08);
    transition: all 0.3s ease;
    position: relative;
    min-width: 0;
}

.ip-display:hover {
    border-color: rgba(102, 255, 214, 0.45);
    box-shadow: 0 0 22px rgba(0, 255, 200, 0.12);
}

/* --- World Clock Display --- */
.world-clock-display {
    grid-column: 1 / span 2;
    grid-row: 2;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(9, 20, 42, 0.78), rgba(5, 12, 28, 0.82)),
        radial-gradient(circle at top right, rgba(74, 171, 255, 0.18), transparent 45%);
    border: 1px solid rgba(104, 193, 255, 0.24);
    border-radius: 6px;
    backdrop-filter: blur(3px);
    box-shadow: 0 0 18px rgba(64, 160, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    min-width: 0;
}

.world-clock-display:hover {
    border-color: rgba(128, 214, 255, 0.42);
    box-shadow: 0 0 24px rgba(64, 160, 255, 0.16);
}

.world-clock-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
}

.world-clock-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #86d8ff;
    text-shadow: 0 0 8px rgba(96, 196, 255, 0.2);
}

.world-clock-subtitle {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: rgba(224, 240, 255, 0.72);
    line-height: 1.4;
}

.world-clock-badge {
    align-self: center;
    border: 1px solid rgba(134, 216, 255, 0.28);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.72rem;
    color: #9ce8ff;
    background: rgba(120, 200, 255, 0.08);
    white-space: nowrap;
}

.world-clock-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.clock-card {
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid rgba(104, 193, 255, 0.18);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(4, 12, 28, 0.92), rgba(7, 18, 40, 0.8));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.clock-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.clock-label {
    font-size: 0.72rem;
    color: rgba(157, 220, 255, 0.82);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.clock-select {
    min-width: 160px;
    max-width: 100%;
    padding: 0.42rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(104, 193, 255, 0.22);
    background: rgba(6, 16, 34, 0.92);
    color: #e8f6ff;
    font-family: var(--font-family);
    font-size: 0.76rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.clock-select:focus {
    border-color: rgba(129, 218, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(80, 180, 255, 0.14);
}

.clock-time {
    font-size: clamp(1.55rem, 3.2vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #f1fbff;
    text-shadow: 0 0 12px rgba(96, 196, 255, 0.16);
}

.clock-meta {
    margin-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.clock-region {
    font-size: 0.82rem;
    color: #8fdfff;
}

.clock-date {
    font-size: 0.74rem;
    color: rgba(222, 238, 255, 0.7);
}

.ip-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.ip-panel-title {
    color: #7fffe0;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.ip-panel-tag {
    font-size: 0.7rem;
    color: #0a0a1a;
    background: rgba(127, 255, 224, 0.85);
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-weight: 700;
}

.ip-panel-subtitle {
    font-size: 0.75rem;
    color: rgba(224, 224, 224, 0.72);
    margin-bottom: 0.7rem;
    line-height: 1.35;
}

.ip-probe-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.ip-probe-item {
    background:
        linear-gradient(135deg, rgba(0, 255, 200, 0.04), rgba(0, 170, 255, 0.03)),
        rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(102, 255, 214, 0.14);
    border-left: 3px solid rgba(127, 255, 224, 0.32);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
}

.ip-probe-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.35rem;
}

.ip-probe-label {
    font-size: 0.78rem;
    color: rgba(127, 255, 224, 0.92);
    font-weight: 600;
}

.ip-probe-status {
    font-size: 0.68rem;
    color: rgba(224, 224, 224, 0.75);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.08rem 0.45rem;
    white-space: nowrap;
}

.ip-probe-status.ok {
    color: #8fffe6;
    border-color: rgba(127, 255, 224, 0.25);
    background: rgba(127, 255, 224, 0.08);
}

.ip-probe-status.error {
    color: #ffb0b0;
    border-color: rgba(255, 120, 120, 0.25);
    background: rgba(255, 120, 120, 0.08);
}

.ip-probe-ip {
    color: #f0ffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    word-break: break-all;
    text-shadow: 0 0 8px rgba(127, 255, 224, 0.08);
}

.ip-probe-meta {
    margin-top: 0.28rem;
    font-size: 0.72rem;
    color: rgba(224, 224, 224, 0.8);
    line-height: 1.35;
}

.ip-probe-note {
    margin-top: 0.25rem;
    font-size: 0.68rem;
    color: rgba(224, 224, 224, 0.55);
    line-height: 1.25;
}

/* --- Typing Cursor --- */
#main-title::after {
    content: '_';
    animation: blink 1.6s step-end infinite;
    margin-left: 5px;
    color: rgba(170, 235, 255, 0.75);
    -webkit-text-fill-color: initial;
    text-shadow: 0 0 6px rgba(0, 170, 255, 0.25);
}

#main-title.typed::after {
    opacity: 0.45;
    animation-duration: 2.2s;
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes titlePulse {
    0%, 100% {
        transform: translateY(0);
        text-shadow:
            0 0 4px rgba(0, 170, 255, 0.18),
            0 0 12px rgba(0, 170, 255, 0.12),
            0 0 24px rgba(0, 170, 255, 0.06);
        filter: saturate(1);
    }
    50% {
        transform: translateY(-1px);
        text-shadow:
            0 0 6px rgba(0, 170, 255, 0.28),
            0 0 16px rgba(0, 170, 255, 0.18),
            0 0 28px rgba(0, 170, 255, 0.08);
        filter: saturate(1.08);
    }
}

@keyframes titleUnderline {
    0%, 100% {
        opacity: 0.28;
        transform: scaleX(0.75);
    }
    50% {
        opacity: 0.58;
        transform: scaleX(1);
    }
}

/* --- Search Section --- */
.search-section {
    margin: 2rem 0;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(3px);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.1);
    transition: all 0.3s ease;
    max-width: 600px;
    width: 100%;
}

.search-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.2);
    transform: translateY(-2px);
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.3);
    transform: translateY(-2px);
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--glow-color);
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.8rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    padding: 0.5rem 0;
    outline: none;
    letter-spacing: 0.5px;
}

.search-input::placeholder {
    color: rgba(224, 224, 224, 0.6);
    font-style: italic;
}

.search-input:focus::placeholder {
    opacity: 0.4;
}

.search-button {
    background: linear-gradient(135deg, var(--primary-color), rgba(0, 170, 255, 0.8));
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 15px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.search-button:hover {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.9), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

/* --- Toolbox Grid --- */
#toolbox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.2);
}

.category-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list a {
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.category-list a::before {
    content: '>';
    margin-right: 10px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-list a:hover,
.category-list a:focus {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--glow-color);
}

.category-list a:hover::before {
    color: var(--text-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }

    .container {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem auto;
    }

    #main-title {
        font-size: 2rem;
        letter-spacing: 0.05em;
    }

    #toolbox {
        grid-template-columns: 1fr;
    }

    .calendar-display {
        margin-top: 1rem;
        padding: 0.8rem;
    }

    .date-main {
        font-size: 1.4rem;
    }

    .date-details,
    .lunar-info {
        font-size: 0.9rem;
    }

    .calendar-display:hover::after {
        font-size: 0.7rem;
        bottom: -20px;
    }

    .info-panels {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }

    .calendar-display,
    .world-clock-display,
    .ip-display,
    .weather-display {
        grid-column: auto;
        grid-row: auto;
        min-width: auto;
    }

    .search-section {
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }

    .search-container {
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
    }

    .search-icon {
        font-size: 1rem;
        margin-right: 0.6rem;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    .search-button {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scanline {
        animation: none;
    }

    #main-title,
    #main-title::before,
    #main-title::after {
        animation: none;
    }

    #main-title::after {
        opacity: 0.5;
    }
}

/* --- Weather Display --- */
.weather-display {
    grid-column: 2;
    grid-row: 1;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 6px;
    backdrop-filter: blur(3px);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    min-width: 0;
}

.weather-cities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.weather-city {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.weather-city:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.2);
    border-color: rgba(255, 165, 0, 0.5);
}

.weather-city-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.weather-city-name {
    font-size: 0.9rem;
    color: #ffa500;
    font-weight: bold;
    font-family: var(--font-family);
}

.city-select-btn {
    background: none;
    border: none;
    color: #ffa500;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.city-select-btn:hover {
    background: rgba(255, 165, 0, 0.1);
    transform: scale(1.1);
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.weather-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 165, 0, 0.5));
}

.weather-temp {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffa500;
    text-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
    font-family: var(--font-family);
    letter-spacing: 0.5px;
}

.weather-details {
    font-size: 0.8rem;
    color: var(--text-color);
    font-family: var(--font-family);
    text-align: center;
    opacity: 0.9;
}

/* 城市选择模态框 */
.city-select-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.city-select-content {
    background: rgba(10, 10, 26, 0.95);
    border: 1px solid #ffa500;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: #e0e0e0;
    font-family: var(--font-family);
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.3);
}

.city-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 165, 0, 0.3);
    padding-bottom: 0.5rem;
}

.city-select-header h3 {
    color: #ffa500;
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: #ffa500;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 165, 0, 0.1);
    transform: scale(1.1);
}

.city-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.city-search input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    color: #e0e0e0;
    font-family: var(--font-family);
}

.city-search input:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.3);
}

.city-search button {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: white;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

.city-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}

.city-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.city-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 6px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.city-item:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: #ffa500;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ip-probe-item {
        padding: 0.55rem 0.6rem;
    }

    .ip-probe-ip {
        font-size: 0.9rem;
    }

    .ip-probe-list {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .world-clock-header,
    .clock-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .world-clock-grid {
        grid-template-columns: 1fr;
    }

    .clock-select {
        width: 100%;
        min-width: 0;
    }

    .weather-cities {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .weather-city {
        padding: 0.6rem;
    }
    
    .weather-main {
        gap: 0.3rem;
    }
    
    .weather-icon {
        font-size: 1.2rem;
    }
    
    .weather-temp {
        font-size: 1.1rem;
    }
    
    .city-list {
        grid-template-columns: 1fr;
    }
}
