:root {
  --bg: #f5f7fa;
  --bg-alt: #edf2f7;
  --ink: #2d3748;
  --muted: #718096;
  --accent: #3182ce;
  --accent-2: #38a169;
  --accent-3: #d69e2e;
  --accent-4: #e53e3e;
  --accent-5: #805ad5;
  --accent-light: rgba(49, 130, 206, 0.1);
  --card: #ffffff;
  --card-hover: #fefefe;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-header: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.header {
    background: var(--gradient-header);
    color: white;
    text-align: center;
    padding: 50px 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgdmlld0JveD0iMCAwIDYwIDYwIj48cGF0aCBkPSJNMzYgMzRjMC0yLjIxLTEuNzktNC00LTRzLTQgMS43OS00IDQgMS43OSA0IDQgNCA0LTEuNzkgNC00eiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmZmZmMTAiIHN0cm9rZS13aWR0aD0iMiIvPjwvc3ZnPg==');
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.header h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin: 0;
    animation: fadeIn 1s ease both;
    letter-spacing: 1px;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.provinces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease both 0.4s;
}

.province-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 24px;
    color: var(--ink);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    background: var(--gradient-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.province-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-light);
    transition: var(--transition);
}

.province-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.province-link:hover {
    color: var(--accent);
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.province-link:hover::before {
    background: var(--accent);
}

.province-link:hover::after {
    left: 100%;
}

.province-link:active {
    transform: translateY(-3px) scale(0.98);
}

.footer {
    text-align: center;
    padding: 50px 20px;
    background: var(--card);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: var(--muted);
    margin-top: 60px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 1s ease both 0.6s;
}

.footer-links {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.footer-links a:hover::after {
    width: 80%;
}

.copyright {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
    color: var(--muted);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 1024px) {
    .provinces-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 18px;
    }
    
    .province-link {
        min-height: 80px;
        padding: 20px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .provinces-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 15px;
    }
    
    .content {
        padding: 50px 20px;
    }
    
    .header {
        padding: 40px 20px;
    }
    
    .province-link {
        min-height: 70px;
        padding: 18px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .provinces-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 12px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .province-link {
        min-height: 60px;
        padding: 16px;
        font-size: 14px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .provinces-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .province-link {
        min-height: 55px;
        padding: 14px;
        font-size: 13px;
    }
}