/* ChromeFocus主题主样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* 顶部通知栏 */
.top-notice {
    background: #ff6b6b;
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

.top-notice a {
    color: white;
    font-weight: bold;
    margin-left: 5px;
}

/* 头部样式 */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: #4285f4;
    text-decoration: none;
}

.site-description {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* 导航菜单 */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.primary-menu a {
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.primary-menu a:hover {
    color: #4285f4;
    text-decoration: none;
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4285f4;
    transition: width 0.3s;
}

.primary-menu a:hover::after {
    width: 100%;
}

.search-toggle {
    cursor: pointer;
    font-size: 18px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* 搜索框 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-container {
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #4285f4;
    border-radius: 4px;
    font-size: 18px;
}

.search-submit {
    background: #4285f4;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

/* 面包屑导航 */
.breadcrumb-container {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #4285f4;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #34a853;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* 快速导航 */
.quick-nav {
    background: white;
    padding: 30px 0;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s;
    text-decoration: none;
    color: #333;
}

.nav-card:hover {
    transform: translateY(-5px);
    background: #4285f4;
    color: white;
}

.nav-card .icon {
    font-size: 32px;
    margin-bottom: 10px;
}

/* 内容区域 */
.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.content-module {
    background: white;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-module h2 {
    color: #1a73e8;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.content-module h3 {
    margin: 25px 0 15px;
    color: #333;
}

/* 优势网格 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.advantage-card {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.advantage-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* 表格样式 */
.system-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.system-table th,
.system-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.system-table th {
    background: #f8f9fa;
    font-weight: bold;
}

/* 扩展网格 */
.extensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.extension-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.extension-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.extension-content {
    padding: 20px;
}

/* 文章网格 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.post-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #4285f4;
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

.read-more:hover {
    background: #1a73e8;
    text-decoration: none;
}

/* 侧边栏 */
.sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget {
    margin-bottom: 30px;
}

.widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget li:last-child {
    border-bottom: none;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.newsletter-form button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* 分页 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background: #f8f9fa;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .current {
    background: #4285f4;
    color: white;
}

/* 页脚 */
.site-footer {
    background: #2c3e50;
    color: white;
    margin-top: 60px;
}

.footer-top {
    padding: 60px 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget h4 {
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-menu {
    list-style: none;
}

.footer-menu a {
    color: rgba(255,255,255,0.8);
    display: block;
    padding: 5px 0;
}

.footer-menu a:hover {
    color: white;
}

.footer-bottom {
    background: #1a252f;
    padding: 20px 0;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation {
        margin-top: 20px;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid,
    .extensions-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-cards {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .content-module {
        padding: 20px;
    }
}