/* H5移动端专用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --chongqing-color: #e53935;
    --chengdu-color: #4285f4;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --text-color: #333;
    --text-secondary: #666;
    --accent-color: #ff6b35;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom);
}

.container {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部样式 - H5优化 */
header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 20px 0 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
            radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
            radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 40px 40px;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.logo-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
    padding: 0 10px;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 15px;
    font-weight: 300;
    padding: 0 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--accent-color), #ff8c42);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 8px;
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.3);
    font-size: 0.9rem;
    gap: 6px;
}

/* 统计数据 - H5优化 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0 10px;
    padding: 0 10px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.stat-item:active {
    transform: scale(0.98);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* 主要内容区域 - H5优化 */
.content-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    padding: 24px 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-title i {
    font-size: 1.6rem;
    margin-right: 12px;
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.1);
    padding: 10px;
    border-radius: 10px;
    flex-shrink: 0;
}

.section-title h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

/* 介绍区域 - H5优化 */
.intro-box {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(52, 168, 83, 0.05) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
}

.intro-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.intro-box p:last-child {
    margin-bottom: 0;
}

/* 新的卡片式列表 - 替代表格 */
.award-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.award-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.award-card:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.award-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.region-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.chongqing-tag {
    background: linear-gradient(135deg, var(--chongqing-color), #b71c1c);
    color: white;
}

.chengdu-tag {
    background: linear-gradient(135deg, var(--chengdu-color), #0d47a1);
    color: white;
}

.award-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.brand-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 20px !important;
    line-height: 1.4;
    margin-bottom: 8px;
}

.organization {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.organization i {
    margin-right: 8px;
    color: var(--primary-color);
    margin-top: 3px;
}

/* 标签页样式 - H5优化 */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 获奖亮点 - H5优化 */
.highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.highlight-item {
    background: white;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.highlight-item:active {
    transform: translateY(-4px);
}

.highlight-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.highlight-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.highlight-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 联系区域 - H5优化 */
.contact-area {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    border-radius: 16px;
    padding: 25px 18px;
    margin-top: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.2);
}

.contact-area h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.contact-item:active {
    background: rgba(255, 255, 255, 0.25);
}

.contact-item i {
    font-size: 1.6rem;
    margin-right: 15px;
    color: white;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    text-align: left;
}

.contact-details p {
    font-size: 0.95rem;
    opacity: 0.9;
    text-align: left;
}

/* 页脚 - H5优化 */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 12px;
    opacity: 0.9;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.footer-section i {
    margin-right: 8px;
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* 移动端特定优化 */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: 1.4rem;
        padding: 0 8px;
    }

    .subtitle {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    .logo {
        padding: 10px 14px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-icon {
        font-size: 1.6rem;
    }

    .section-title {
        margin-bottom: 18px;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }

    .section-title i {
        font-size: 1.4rem;
        padding: 8px;
    }

    .content-section {
        padding: 20px 14px;
        margin: 16px 0;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 8px;
    }

    .stat-item {
        padding: 16px 10px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .tab {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .award-card {
        padding: 16px;
    }

    .brand-name {
        font-size: 18px !important;
    }

    .organization {
        font-size: 0.9rem;
    }

    .region-tag {
        font-size: 0.85rem;
        padding: 5px 12px;
    }

    .award-number {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
        margin-right: 10px;
    }
}

/* 横屏适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .logo-area {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .logo {
        flex: 1;
        max-width: 250px;
    }

    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 大屏手机适配 */
@media (min-width: 414px) and (max-width: 767px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-item {
        padding: 18px 12px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* 平板适配 */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }

    h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* 动画效果 - 移动端优化 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: fadeInUp 0.5s ease-out;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:active {
    background: #0d47a1;
    transform: scale(0.95);
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(26, 115, 232, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 防止长按弹出菜单 */
.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}