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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding: 10px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
    margin-top: 60px;
}

section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #1890ff;
    margin-bottom: 1rem;
}

.top-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
}

.top-nav a {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.top-nav a:hover {
    background: #f5f5f5;
}

.top-nav a.active {
    background: #1890ff;
    color: #fff;
}

.region-nav {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    text-align: left;
}

nav a {
    color: #0066cc;
    text-decoration: none;
    margin: 0 8px;
    display: inline-block;
}

nav a:hover {
    color: #ff0000;
}

.notice {
    position: relative;
    padding: 15px 20px 15px 50px;
    margin: 20px 0;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
    color: #e65100;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notice::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e65100'%3E%3Cpath d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: bell-ring 1s ease-in-out infinite;
}

@keyframes bell-ring {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    25% {
        transform: translateY(-50%) rotate(15deg);
    }

    50% {
        transform: translateY(-50%) rotate(0deg);
    }

    75% {
        transform: translateY(-50%) rotate(-15deg);
    }

    100% {
        transform: translateY(-50%) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .notice {
        padding: 12px 15px 12px 45px;
        font-size: 13px;
    }

    .notice::before {
        left: 12px;
        width: 20px;
        height: 20px;
    }
}

.price-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.price-table th,
.price-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.price-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.price-table tr:hover {
    background-color: #f9f9f9;
}

.price-up {
    color: #ff0000;
}

.price-down {
    color: #008000;
}

.price-note {
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.price-note p {
    font-weight: bold;
    margin-bottom: 1rem;
}

.price-note ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.price-note li {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.6;
}

/* QR Code Component Styles */
.qrcode {
    position: fixed;
    right: 20px;
    top: 200px;
    width: 200px;
    text-align: center;
    background: #fff;
    padding: 15px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qrcode .close-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    background: #ff0000;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.qrcode .close-btn:hover {
    background: #cc0000;
}

.qrcode.hidden {
    display: none;
}

.qrcode img {
    width: 150px;
    height: 150px;
    margin: 10px 0;
}

.qrcode p {
    color: #ff0000;
    font-size: 0.9em;
    margin: 5px 0;
}

.price-update {
    text-align: center;
    margin-bottom: 15px;
}

.price-update h3 {
    color: #333;
    margin-bottom: 10px;
}

.price-update p {
    color: #ff0000;
    margin: 5px 0;
    font-size: 0.9em;
}

.qr-image {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto;
}

.chart-container {
    width: 100%;
    height: 400px;
    margin-top: 1rem;
}

footer {
    text-align: center;
    padding: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.beian-link {
    display: block;
    margin-top: 10px;
    color: #999;
    text-decoration: none;
    font-size: 0.8rem;
}

.beian-link:hover {
    color: #666;
}

@media (max-width: 1200px) {
    .qrcode {
        display: none;
    }
}

@media (max-width: 768px) {
    main {
        margin: 1rem auto;
    }

    section {
        padding: 1rem;
    }

    body {
        padding: 5px;
    }

    nav a {
        margin: 3px;
        font-size: 0.9em;
    }

    th,
    td {
        padding: 4px;
        font-size: 0.9em;
    }

    .region-links {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
}

/* 调价时间表页面样式 */
.schedule-table {
    margin: 2rem 0;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.schedule-table th,
.schedule-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.schedule-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.schedule-table tr:hover {
    background-color: #f9f9f9;
}

.schedule-note {
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.schedule-note p {
    font-weight: bold;
    margin-bottom: 1rem;
}

.schedule-note ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.schedule-note li {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.6;
}

.region-select {
    margin-left: 20px;
}

.region-select select {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.region-select select:hover {
    border-color: #1890ff;
}

.region-select select:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.regions-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.regions-section h2 {
    color: #1890ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.region-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.region-links a {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f8f8;
}

.region-links a:hover {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

@media (max-width: 768px) {
    .regions-section {
        padding: 1rem;
    }

    .region-links {
        gap: 8px;
    }

    .region-links a {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 油价走势图样式 */
.price-trend {
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-tabs {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.tab-btn.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.trend-chart {
    height: 400px;
    width: 100%;
}

/* 油价资讯样式 */
.news-section {
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.news-card {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-summary {
    color: #666;
    line-height: 1.6;
}

/* 常见问题样式 */
.faq-section {
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-list {
    margin-top: 1rem;
}

.faq-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .chart-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* 首页顶部左右分栏布局 */
.notice-qrcode-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    background: #fff;
    border-radius: 8px;
    padding: 16px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    align-items: stretch;
}

.notice-col {
    flex: 2;
    font-size: 1.1em;
    color: #222;
    display: flex;
    align-items: center;
    min-width: 0;
    word-break: break-all;
}

.qrcode-col {
    flex: 1;
    text-align: center;
    border-left: 1px solid #eee;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qrcode-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.qrcode-notice {
    color: #e53935;
    margin-bottom: 8px;
    font-size: 1em;
}

.qrcode-img img {
    width: 120px;
    height: 120px;
    margin-bottom: 8px;
}

.qrcode-desc {
    color: #888;
    font-size: 0.95em;
}

@media (max-width: 700px) {
    .notice-qrcode-row {
        flex-direction: column;
        padding: 12px 8px;
        gap: 12px;
    }

    .qrcode-col {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 12px;
    }
}

/* 首页主内容左右分栏布局 */
.main-row {
    display: flex;
    gap: 32px;
    margin-bottom: 2rem;
    background: none;
    box-shadow: none;
    padding: 0;
    align-items: stretch;
}

.main-col.price-table-col {
    flex: 2.5;
    min-width: 0;
}

.main-col.notice-qrcode-col {
    /* flex: 1.2; */
    min-width: 260px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    padding: 18px 20px;
    align-self: flex-start;
}

.notice-col {
    margin-bottom: 18px;
    font-size: 1.05em;
    color: #222;
}

@media (max-width: 900px) {
    .main-row {
        flex-direction: column;
        gap: 18px;
    }

    .main-col.notice-qrcode-col {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 14px 8px;
    }
}

.price-table-col {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qrcode-imgs {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 8px;
}

.qrcode-imgs img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #eee;
}

@media (max-width: 700px) {
    .qrcode-imgs {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

.qrcode-city-links {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #333;
    text-align: left;
}

.qrcode-city-links a {
    color: #1890ff;
    text-decoration: none;
    margin: 0 4px;
    transition: color 0.2s;
}

.qrcode-city-links a:hover {
    color: #e53935;
    text-decoration: underline;
}

.qrcode-city-links .city-link-row {
    margin-bottom: 6px;
    line-height: 1.7;
}