/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

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

/* 顶部栏 */
.top-bar {
    background-color: #1a1a2e;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #fff;
}

.login-link {
    background-color: #c8102e;
    padding: 5px 15px;
    border-radius: 3px;
    color: #fff !important;
}

.login-link:hover {
    background-color: #a00d25;
}

/* 主导航 */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #c8102e;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 16px;
    color: #666;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: #c8102e;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #c8102e;
}

/* 英雄区域 */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
}

.slide-tag {
    display: inline-block;
    background-color: rgba(200, 16, 46, 0.8);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.slide-text h2 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-text p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slide-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #c8102e;
    color: #fff;
}

.btn-primary:hover {
    background-color: #a00d25;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: #333;
}

/* 数据统计 */
.stats-section {
    background-color: #fff;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #c8102e;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* 通用区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
}

/* 关于华为 */
.about-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.about-text h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.values-list {
    list-style: none;
    margin-top: 20px;
}

.values-list li {
    padding: 15px 20px;
    background-color: #fff;
    border-left: 4px solid #c8102e;
    margin-bottom: 10px;
    border-radius: 0 5px 5px 0;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.placeholder-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.milestones {
    margin-top: 60px;
}

.milestones h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 40px;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ddd;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #c8102e;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #c8102e;
}

.timeline-item .year {
    font-weight: 700;
    color: #c8102e;
    margin-bottom: 5px;
}

.timeline-item .event {
    color: #555;
}

/* 业务领域 */
.business-section {
    padding: 80px 0;
    background-color: #fff;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.business-card {
    background-color: #f9f9f9;
    padding: 40px 30px;
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #c8102e;
}

.business-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.business-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.business-card > p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.business-card ul {
    list-style: none;
}

.business-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 14px;
}

.business-card ul li:last-child {
    border-bottom: none;
}

/* 新闻动态 */
.news-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.featured-news {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.featured-news .news-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-category {
    background-color: #c8102e;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
}

.featured-news .news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}

.featured-news h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a2e;
    line-height: 1.4;
}

.featured-news > .news-content > p {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    color: #c8102e;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 15px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.news-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image-small {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-info h4 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.news-info .news-meta {
    margin-bottom: 0;
}

.news-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tag {
    padding: 8px 20px;
    background-color: #fff;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.category-tag:hover,
.category-tag.active {
    background-color: #c8102e;
    color: #fff;
}

/* 股票信息 */
.stock-section {
    padding: 80px 0;
    background-color: #fff;
}

.stock-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    border-radius: 10px;
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.notice-icon {
    font-size: 60px;
}

.notice-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.notice-content p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.stock-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.info-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
}

.info-card h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.info-main {
    font-size: 20px;
    font-weight: 700;
    color: #c8102e;
    margin-bottom: 5px;
}

.info-sub {
    font-size: 13px;
    color: #999;
}

.financial-data {
    margin-bottom: 30px;
}

.financial-data h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.financial-table {
    width: 100%;
    border-collapse: collapse;
}

.financial-table th,
.financial-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.financial-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}

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

.change-up {
    color: #22c55e;
    font-weight: 600;
}

.stock-disclaimer {
    background-color: #fef3c7;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.stock-disclaimer p {
    color: #92400e;
    font-size: 14px;
}

/* 人才招聘 */
.careers-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.careers-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.careers-intro h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.careers-intro > p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.careers-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
}

.benefit-icon {
    font-size: 24px;
}

.careers-categories {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
}

.careers-categories h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.category-item {
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.category-item:hover {
    background-color: #c8102e;
    color: #fff;
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-card {
    text-align: center;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.contact-card h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.contact-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* 页脚 */
.main-footer {
    background-color: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #c8102e;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background-color: #a00d25;
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .careers-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .slide-text h2 {
        font-size: 32px;
    }
    
    .slide-text p {
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .stock-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .notice-icon {
        font-size: 40px;
    }
    
    .stock-notice {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .category-list {
        grid-template-columns: 1fr;
    }
}

/* ==================== 实时股票行情样式 ==================== */

.realtime-panel {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
}

.panel-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.panel-header h3 {
    color: #fff;
    font-size: 18px;
    margin: 0;
}

.panel-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.market-select {
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.market-select option {
    background-color: #1a1a2e;
    color: #fff;
}

.refresh-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #c8102e;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.refresh-btn:hover {
    background-color: #a00d25;
    transform: scale(1.05);
}

.refresh-btn:active {
    transform: scale(0.95);
}

.update-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.market-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.tab-btn {
    flex-shrink: 0;
    padding: 15px 25px;
    border: none;
    background: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #c8102e;
}

.tab-btn.active {
    color: #c8102e;
    border-bottom-color: #c8102e;
    background-color: #fff;
}

.stock-table-container {
    overflow-x: auto;
    padding: 20px;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.stock-table th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
}

.stock-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.stock-table tbody tr {
    transition: background-color 0.2s;
}

.stock-table tbody tr:hover {
    background-color: #f8f9fa;
}

.stock-table tbody tr.loading-row td {
    text-align: center;
    color: #999;
    padding: 40px;
}

.stock-table tbody tr.error-row td {
    text-align: center;
    color: #c8102e;
    padding: 40px;
}

.stock-table .price-up {
    color: #ef4444;
    font-weight: 600;
}

.stock-table .price-down {
    color: #22c55e;
    font-weight: 600;
}

.stock-table .price-flat {
    color: #666;
}

.stock-table .status-live {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stock-table .status-closed {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    background-color: rgba(153, 153, 153, 0.1);
    color: #999;
}

.market-summary {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 15px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.summary-label {
    font-size: 13px;
    color: #666;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.summary-value.up {
    color: #ef4444;
}

.summary-value.down {
    color: #22c55e;
}

/* 热门股票卡片 */
.hot-stocks {
    margin-bottom: 40px;
}

.hot-stocks h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.hot-stocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.hot-stock-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.hot-stock-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hot-stock-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.hot-stock-info .stock-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.hot-stock-info .stock-code {
    font-size: 12px;
    color: #999;
}

.stock-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

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

.price-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.price-change {
    font-size: 14px;
    font-weight: 500;
}

.price-up .price-value,
.price-up .price-change {
    color: #ef4444;
}

.price-down .price-value,
.price-down .price-change {
    color: #22c55e;
}

.price-flat .price-value,
.price-flat .price-change {
    color: #666;
}

.hot-stock-chart {
    height: 40px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.chart-bar {
    flex: 1;
    background-color: #e5e7eb;
    border-radius: 2px 2px 0 0;
    transition: all 0.3s;
}

.hot-stock-card:hover .chart-bar {
    background-color: #c8102e;
}

/* 股票走势图样式 */
.stock-chart-container {
    width: 100%;
    height: 100px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.stock-chart-svg {
    width: 100%;
    height: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .panel-controls {
        width: 100%;
    }
    
    .market-select {
        flex: 1;
    }
    
    .market-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
    
    .stock-table-container {
        padding: 10px;
    }
    
    .stock-table th,
    .stock-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .market-summary {
        padding: 15px;
    }
    
    .summary-value {
        font-size: 16px;
    }
    
    .hot-stocks-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .hot-stocks-grid {
        grid-template-columns: 1fr;
    }
    
    .hot-stock-card {
        padding: 15px;
    }
}

/* ==================== 新闻动态样式 ==================== */

.news-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f9f9f9 0%, #fff 100%);
}

.news-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-update-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.news-update-info span {
    font-size: 14px;
    color: #666;
}

.refresh-news-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #c8102e 0%, #a00d25 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.refresh-news-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.refresh-news-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auto-refresh-status {
    padding: 5px 12px;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-radius: 15px;
    font-size: 12px;
}

/* 加载动画 */
.news-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c8102e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.news-loading p {
    color: #666;
    font-size: 16px;
}

/* 新闻布局 */
.news-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* 头条新闻 */
.featured-news {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.featured-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.featured-news .news-image {
    height: 220px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background-color: #f5f5f5;
}

.featured-news .news-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.featured-news .news-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(200, 16, 46, 0.95);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.featured-news .news-content {
    padding: 25px;
}

.featured-news .news-content h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-news .news-content p {
    color: #666;
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    border-left: 3px solid #c8102e;
}

.news-item .news-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.news-item .news-thumbnail .thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
    transition: opacity 0.3s;
}

.news-item:hover .news-thumbnail .thumbnail-overlay {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.news-item .news-info {
    flex: 1;
    min-width: 0;
}

.news-item h4 {
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .news-summary {
    color: #888;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

/* 新闻分类 */
.news-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.category-tag {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.category-tag:hover {
    border-color: #c8102e;
    color: #c8102e;
}

.category-tag.active {
    background: linear-gradient(135deg, #c8102e 0%, #a00d25 100%);
    color: #fff;
    border-color: transparent;
}

/* ==================== 新闻详情模态框 ==================== */

.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, #c8102e 0%, #a00d25 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-category {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

.modal-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    position: relative;
}

.modal-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, #fff, transparent);
}

.modal-title {
    font-size: 24px;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 15px;
    padding: 0 30px;
}

.modal-body > .modal-meta,
.modal-body > .modal-divider,
.modal-body > .modal-description,
.modal-body > .modal-actions {
    padding-left: 30px;
    padding-right: 30px;
}

.modal-body > .modal-divider {
    padding-left: 30px;
    padding-right: 0;
    margin-left: 30px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(135deg, #c8102e 0%, #a00d25 100%);
    border-radius: 2px;
    margin-bottom: 25px;
}

.modal-description {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 30px;
    white-space: pre-wrap;
}

.modal-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-link,
.modal-back {
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.modal-link {
    background: linear-gradient(135deg, #c8102e 0%, #a00d25 100%);
    color: #fff;
}

.modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.modal-back {
    background: #f5f5f5;
    color: #666;
}

.modal-back:hover {
    background: #e8e8e8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .featured-news .news-content h3 {
        font-size: 18px;
    }
    
    .news-item {
        padding: 15px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
}
