/* 香港资料大全 - 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0e0;
    line-height: 1.8;
    min-height: 100vh;
}

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

/* 头部样式 */
header {
    background: linear-gradient(90deg, #c41e3a 0%, #8b0000 50%, #1a1a2e 100%);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5em;
    color: #ffd700;
}

.logo h1 {
    font-size: 2em;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.logo p {
    color: #ccc;
    font-size: 0.9em;
}

/* 导航样式 */
nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s;
    display: block;
    font-size: 0.95em;
}

nav a:hover, nav a.active {
    background: rgba(255,215,0,0.2);
    color: #ffd700;
    transform: translateY(-2px);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%231a1a2e" width="1200" height="400"/><text x="50%" y="50%" font-size="60" fill="%23ffd700" text-anchor="middle" dominant-baseline="middle">香港资料大全</text></svg>');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3em;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.3em;
    color: #ddd;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    color: #ffd700;
    font-weight: bold;
}

.stat-label {
    color: #aaa;
    font-size: 0.9em;
}

/* 分类卡片 */
.categories {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    color: #ffd700;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #c41e3a;
    margin: 15px auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background: linear-gradient(145deg, #1e3a5f 0%, #2d4a6f 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255,215,0,0.1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,215,0,0.3);
}

.category-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.category-card h3 {
    color: #ffd700;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.category-card p {
    color: #bbb;
    font-size: 0.95em;
}

/* 文章列表 */
.articles-section {
    padding: 60px 0;
    background: rgba(0,0,0,0.2);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.article-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

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

.article-image {
    height: 180px;
    background: linear-gradient(45deg, #c41e3a, #8b0000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
}

.article-content {
    padding: 20px;
}

.article-category {
    color: #ffd700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.article-card h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card p {
    color: #aaa;
    font-size: 0.9em;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.85em;
}

.read-more {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

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

/* 页面内容样式 */
.page-content {
    padding: 40px 0;
}

.page-header {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    margin-bottom: 40px;
}

.page-header h2 {
    font-size: 2.5em;
    color: #ffd700;
    margin-bottom: 15px;
}

.page-header p {
    color: #ccc;
    font-size: 1.1em;
}

.content-section {
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.content-section h3 {
    color: #ffd700;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c41e3a;
}

.content-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 8px;
}

/* 文章详情页 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255,255,255,0.02);
    border-radius: 15px;
    padding: 40px;
}

.article-detail h1 {
    color: #ffd700;
    font-size: 2em;
    margin-bottom: 20px;
}

.article-detail .meta {
    color: #888;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.article-detail p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

/* 页脚 */
footer {
    background: #0a0a1a;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid #c41e3a;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #ffd700;
    margin-bottom: 15px;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2em;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .category-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }
}

/* 特色标签 */
.tag {
    display: inline-block;
    background: rgba(196,30,58,0.3);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    margin: 3px;
}

/* 图片占位 */
.img-placeholder {
    background: linear-gradient(45deg, #1a1a2e, #2d4a6f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 2em;
    min-height: 200px;
    border-radius: 10px;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
}

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffd700;
    border: 3px solid #c41e3a;
}

.timeline-date {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 5px;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.data-table th {
    background: rgba(196,30,58,0.3);
    color: #ffd700;
}

.data-table tr:hover {
    background: rgba(255,255,255,0.02);
}
