/* Modern under development website styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #4361ee;
    --primary-color-rgb: 67, 97, 238;
    --secondary-color: #3a0ca3;
    --secondary-color-rgb: 58, 12, 163;
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-text: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 0;
}

/* 背景装饰元素 */
.bg-circle {
    position: fixed;
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.bg-circle-1 {
    background: var(--primary-color);
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.bg-circle-2 {
    background: var(--secondary-color);
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 0 1.5rem;
    margin: 0 auto;
    z-index: 1;
}

.content {
    background-color: var(--white);
    border-radius: 20px;
    padding: 1.8rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 95vh;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.logo h1 {
    font-weight: 700;
    font-size: 2.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Status styles */
.status {
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
}

.status-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.progress-container {
    width: 80%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 75%;
    background: var(--gradient);
    border-radius: 10px;
    animation: progress-animation 2s ease-in-out;
}

@keyframes progress-animation {
    from { width: 0; }
    to { width: 75%; }
}

/* Message styles */
.message {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.message h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.message p {
    font-size: 1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Countdown styles */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.countdown-item {
    flex: 1;
    max-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    padding: 0.6rem;
    border-radius: 8px;
}

.countdown-item span:first-child {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.countdown-item .label {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 0.2rem;
}

/* 用户IP地址样式和天气卡片共享的样式 */
.user-ip, .weather-card {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

/* 用户IP地址样式 */
.user-ip {
    padding: 0.7rem 1.5rem;
    background-color: rgba(240, 245, 255, 0.25) !important;
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

/* 天气卡片样式 */
.weather-card {
    padding: 0.7rem 1.5rem;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    transition: all 0.3s ease;
}

/* IP卡片内容样式 */
.ip-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.ip-content i, .ip-info, .ip-title, #ip-address, #country-name, #region-name {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

.ip-content i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.ip-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: center;
    width: 100%;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* 天气卡片内容样式 */
.weather-card .weather-content {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* 天气内容详细样式 */
.weather-content i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.weather-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.2rem;
    width: 100%;
    align-items: center;
}

.weather-location {
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    width: 100%;
    text-align: center;
}

#weather-data {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.2rem;
}

.weather-temp {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.country-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
    width: 100%;
}

.region-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    font-size: 0.9em;
    width: 100%;
    color: var(--text-color);
}

/* 统一卡片悬停效果 */
.user-ip:hover, .weather-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 通知表单样式 */
.notify {
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
}

.notify h3 {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px 0 0 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background-color: var(--background-color);
    transition: border-color 0.3s;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.subscribe-form button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 联系邮箱样式 */
.contact-email {
    margin: 0 0 1.5rem;
    text-align: center;
}

.contact-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.contact-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-btn i {
    font-size: 0.9rem;
}

/* 社交链接样式 */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--background-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.social-icon:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Developer tools animation */
.developer-tools {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.tool-item {
    width: 35px;
    height: 35px;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--primary-color);
    font-size: 1rem;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.tool-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.tool-item:nth-child(1) {
    animation-delay: 0s;
}

.tool-item:nth-child(2) {
    animation-delay: 0.5s;
}

.tool-item:nth-child(3) {
    animation-delay: 1s;
}

.tool-item:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ICP备案信息样式 */
.icp-info {
    position: fixed;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--light-text);
    z-index: 10;
}

.icp-info a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.icp-info a:hover {
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-height: 800px) {
    .content {
        padding: 1.2rem 1.5rem;
    }
    
    .logo {
        margin-bottom: 0.8rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .status {
        margin-bottom: 1rem;
    }
    
    .message {
        margin-bottom: 1rem;
    }
    
    .message h2 {
        font-size: 1.5rem;
    }
    
    .countdown {
        margin-bottom: 1rem;
    }
    
    .user-ip, .notify, .contact-email {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        padding: 1rem 0;
        overflow-y: auto;
    }
    
    .content {
        padding: 1.5rem 1.2rem;
        border-radius: 15px;
        max-height: none;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .message h2 {
        font-size: 1.5rem;
    }
    
    .countdown {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .countdown-item {
        flex: 0 0 calc(50% - 0.4rem);
        max-width: calc(50% - 0.4rem);
    }
    
    .countdown-item span:first-child {
        font-size: 1.6rem;
    }
    
    .user-ip, .weather-card {
        max-width: 100%;
        padding: 0.7rem 1rem;
    }
    
    .ip-content, .weather-content {
        justify-content: center;
    }
    
    .ip-content i, .weather-content i {
        font-size: 1.2rem;
        margin-right: 0.8rem;
    }
    
    .ip-info, .weather-info {
        text-align: center;
    }
    
    .country-info {
        justify-content: center;
    }
    
    .country-flag {
        margin-right: 0.4rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input {
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .subscribe-form button {
        border-radius: 8px;
        padding: 0.6rem;
    }
    
    .developer-tools {
        bottom: auto;
        right: auto;
        position: relative;
        margin: 1.5rem auto 1rem;
        justify-content: center;
    }
    
    .icp-info {
        position: relative;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        bottom: auto;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1.2rem 1rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .message h2 {
        font-size: 1.3rem;
    }
    
    .message p {
        font-size: 0.9rem;
    }
    
    .country-flag {
        width: 1.2rem;
        height: 0.85rem;
    }
    
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-ip, .weather-card {
        padding: 0.6rem 0.8rem;
    }
    
    .weather-info, .ip-info {
        font-size: 0.9rem;
    }
    
    .weather-temp {
        font-size: 1rem;
    }
}

/* 天气特效 */
.weather-effect.sunny {
    background: url('https://images.unsplash.com/photo-1561484930-998b6a7b22e8?q=80&w=1200') center/cover no-repeat;
    opacity: 0.2;
    animation: sun-move 60s infinite linear;
}

@keyframes sun-move {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.weather-effect.cloudy {
    background: url('https://images.unsplash.com/photo-1611928482473-7b27d24eab80?q=80&w=1200') center/cover no-repeat;
    opacity: 0.2;
    animation: clouds-move 80s infinite linear;
}

@keyframes clouds-move {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.weather-effect.rainy {
    background: url('https://images.unsplash.com/photo-1519692933481-e162a57d6721?q=80&w=1200') center/cover no-repeat;
    opacity: 0.2;
}

.weather-effect.rainy::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(120, 160, 255, 0.2)) 0 0 / 100% 200%;
    animation: rain 1.5s linear infinite;
    pointer-events: none;
}

@keyframes rain {
    0% { transform: translateY(0); }
    100% { transform: translateY(50%); }
}

.weather-effect.snowy {
    background: url('https://images.unsplash.com/photo-1542601098-8fc114e148e2?q=80&w=1200') center/cover no-repeat;
    opacity: 0.2;
}

.weather-effect.snowy::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.9) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: snow 10s linear infinite;
    pointer-events: none;
}

@keyframes snow {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* 闪电效果 */
.weather-effect.thunderstorm {
    background: url('https://images.unsplash.com/photo-1605727216801-e27ce1d0cc28?q=80&w=1200') center/cover no-repeat;
    opacity: 0.2;
}

.weather-effect.thunderstorm::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 40%;
    width: 20%;
    height: 40%;
    background: rgba(255, 255, 230, 0.8);
    clip-path: polygon(50% 0%, 0% 100%, 50% 65%, 100% 100%);
    animation: lightning 5s ease-in-out infinite;
    opacity: 0;
}

@keyframes lightning {
    0%, 97%, 99% { opacity: 0; }
    98% { opacity: 1; }
}

/* 雾天效果 */
.weather-effect.foggy {
    background: url('https://images.unsplash.com/photo-1487621167305-5d248087c724?q=80&w=1200') center/cover no-repeat;
    opacity: 0.2;
    animation: fog-move 40s ease-in-out infinite alternate;
}

@keyframes fog-move {
    0% { background-position: 0% center; opacity: 0.15; }
    100% { background-position: 100% center; opacity: 0.25; }
}

.weather-effect.partly-cloudy {
    background: url('https://images.unsplash.com/photo-1501630834273-4b5604d2ee31?q=80&w=1200') center/cover no-repeat;
    opacity: 0.2;
    animation: clouds-slow-move 100s infinite linear;
}

@keyframes clouds-slow-move {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.weather-effect.windy {
    background: url('https://images.unsplash.com/photo-1527482797697-8795b05a13fe?q=80&w=1200') center/cover no-repeat;
    opacity: 0.2;
    animation: wind 15s infinite ease-in-out;
}

@keyframes wind {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.weather-effect.dusty {
    background: url('https://images.unsplash.com/photo-1520635360276-79f3dbd809f6?q=80&w=1200') center/cover no-repeat;
    opacity: 0.2;
    filter: sepia(20%) brightness(0.95);
}

/* 国家特定背景样式 */
.ip-background.china {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1547981609-4b6bfe67ca0b?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.usa {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1501594907352-04cda38ebc29?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.japan {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1542051841857-5f90071e7989?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.uk {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.germany {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1467269204594-9661b134dd2b?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.default {
    background: rgba(var(--primary-color-rgb), 0.1);
}

/* 更多国家特定背景样式 */
.ip-background.france {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1502602898657-3e91760cbb34?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.canada {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1503614472-8c93d56e92ce?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.australia {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1523482580672-f109ba8cb9be?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.korea {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1538669715315-155892435d3d?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.india {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1524492412937-b28074a5d7da?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.russia {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1513326738677-b964603b136d?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.brazil {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1483729558449-99ef09a8c325?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

/* 为新加坡和其他国家添加背景样式 */
.ip-background.singapore {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1496939376851-89342e90adcd?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.thailand {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1528181304800-259b08848526?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.malaysia {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1596422846543-75c6fc197f07?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.indonesia {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1539367628448-4bc5c9d171c8?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.philippines {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1518509562904-e7ef99cdbc75?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.vietnam {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1528127269322-539801943592?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.spain {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1543783207-ec64e4d95325?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.italy {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1516483638261-f4dbaf036963?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

.ip-background.netherlands {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1512470876302-972faa2aa9a4?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

/* 香港背景样式 */
.ip-background.hongkong {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('https://images.unsplash.com/photo-1536599018102-9f803c140fc1?q=80&w=1200') center/cover no-repeat;
    opacity: 0.4;
}

/* 增强IP信息文字的可见度 */
.ip-title, #ip-address, #country-name, #region-name {
    font-weight: 600;
    color: #333;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

.region-info i {
    color: #17a2b8;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

/* 通用IP背景设置 */
.ip-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 悬停效果 */
.user-ip:hover .ip-background {
    opacity: 0.5;
    transform: scale(1.05);
}

.country-flag {
    width: 1.4rem;
    height: 1rem;
    display: inline-block;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    vertical-align: middle;
    margin-right: 0.3rem;
}

#country-name {
    font-weight: 600;
    color: var(--primary-color);
}

#ip-address {
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

#ip-address:hover {
    color: var(--primary-color);
}

.weather-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    transition: background-color 0.5s ease;
    z-index: 0;
}

.weather-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    transition: all 0.5s ease;
}

.weather-card:hover .weather-effect {
    opacity: 0.3;
    transform: scale(1.05);
}

.region-info i {
    margin-right: 8px;
    color: #17a2b8;
    font-size: 1em;
}

/* 确保各个关键元素居中 */
#ip-address, #country-name, #region-name, #weather-location, #weather-data, .weather-temp {
    text-align: center;
    display: inline-block;
}

/* 刷新按钮样式 */
.refresh-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.refresh-button:hover {
    transform: rotate(180deg);
    background-color: var(--primary-color);
    color: white;
}

/* 刷新按钮旋转效果 */
@keyframes refreshing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.refresh-button.refreshing {
    animation: refreshing 1s linear infinite;
    background-color: var(--primary-color);
    color: white;
    pointer-events: none;
}

/* 语言切换按钮样式 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-btn {
    background: var(--white);
    border: none;
    border-radius: 50px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-2px);
}

.lang-btn i {
    font-size: 16px;
}

/* 语言切换按钮响应式 */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 6px 10px;
    }
}

/* Notification styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    max-width: 320px;
}

.notification {
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
    animation: notification-shake 0.5s ease-in-out;
}

@keyframes notification-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.notification.success {
    background-color: #28a745;
    border-left: 4px solid #1e7e34;
}

.notification.error {
    background-color: #dc3545;
    border-left: 4px solid #bd2130;
}

.notification.info {
    background-color: #17a2b8;
    border-left: 4px solid #117a8b;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-message {
    flex: 1;
} 