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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.header-content {
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    animation: logoFadeIn 1s ease-out;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.license-plate-logo {
    display: inline-block;
    background: linear-gradient(180deg, #0066cc 0%, #004c99 100%);
    border-radius: 6px;
    padding: 3px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    border: 2px solid #003d7a;
    transform: scale(0.75);
    transition: all 0.3s ease;
    animation: logoPulse 3s ease-in-out infinite;
}

.license-plate-logo:hover {
    transform: scale(0.8);
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.6);
}

@keyframes logoPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 102, 204, 0.6);
    }
}

.plate-top {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 0;
    text-align: center;
    border-radius: 3px 3px 0 0;
}

.plate-header {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: Arial, sans-serif;
}

.plate-main {
    background: linear-gradient(180deg, #0066cc 0%, #0052a3 100%);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.plate-dot {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ff4444 0%, #cc0000 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.plate-number {
    display: flex;
    align-items: center;
    gap: 2px;
}

.plate-province {
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    letter-spacing: 0.5px;
}

.plate-code-sample {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: Arial, 'Microsoft YaHei', sans-serif;
    letter-spacing: 2px;
}

.plate-bottom {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 0;
    text-align: center;
    border-radius: 0 0 3px 3px;
}

.plate-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 1.5px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.title {
    font-size: 2.8rem;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(
        90deg,
        #2c3e50 0%,
        #4a90e2 25%,
        #0066cc 50%,
        #4a90e2 75%,
        #2c3e50 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGradient 4s ease infinite;
    transition: transform 0.3s ease;
    cursor: default;
}

.title:hover {
    transform: scale(1.05);
    animation-play-state: paused;
}

@keyframes titleGradient {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

.subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-top: 10px;
    animation: subtitleFadeIn 1.5s ease-out;
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 搜索区域 */
.search-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    animation: fadeInUp 0.8s ease-out;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.search-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background: white;
}

.search-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #357abd 0%, #2d5f9e 100%);
}

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

/* 筛选区域 */
.filter-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #333;
}

.province-select {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.province-select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.reset-btn {
    padding: 10px 25px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.reset-btn:hover {
    background: #e0e0e0;
}

/* 统计卡片 */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
}

/* 结果展示 */
.results-section {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.result-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    animation: scaleIn 0.4s ease-out;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
}

.plate-code {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(180deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border-radius: 10px;
    text-align: center;
    letter-spacing: 3px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    border: 3px solid #2d5f9e;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.info-label {
    font-weight: 600;
    color: #666;
    margin-right: 10px;
    min-width: 50px;
}

.info-value {
    color: #333;
    font-weight: 500;
}

.province-tag {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.no-results p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 10px;
}

.no-results-hint {
    font-size: 1rem;
    color: #999;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.footer p {
    margin: 5px 0;
}

#updateTime {
    font-weight: 600;
    color: #4a90e2;
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .license-plate-logo {
        transform: scale(0.65);
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .province-select,
    .reset-btn {
        width: 100%;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header-content {
        padding: 30px 15px;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .plate-code {
        font-size: 1.5rem;
    }
}

