/*
Theme Name: Chrome Download Pro
Description: 专业的Chrome浏览器下载主题，模仿官方Chrome主页设计，针对"谷歌浏览器"关键词SEO优化
Version: 1.0
Author: Chrome Download Pro
Text Domain: chrome-download-pro
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #202124;
    background: #fff;
}

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

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #202124;
}

.logo img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: 500;
}

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

.main-nav a {
    text-decoration: none;
    color: #5f6368;
    font-weight: 400;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #1a73e8;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-button {
    display: inline-block;
    background: #1a73e8;
    color: white;
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.download-button:hover {
    background: #1557b0;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.upload-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #1a73e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    display: none;
}

.blog-section.show {
    display: block;
}

.blog-section .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-section .post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-section .post-card:hover {
    transform: translateY(-3px);
}

.blog-section .post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-section .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-section .post-content {
    padding: 25px;
}

.blog-section .post-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.blog-section .post-title a {
    color: #202124;
    text-decoration: none;
}

.blog-section .post-title a:hover {
    color: #1a73e8;
}

.blog-section .post-excerpt {
    color: #5f6368;
    margin-bottom: 15px;
}

.blog-section .post-meta {
    font-size: 14px;
    color: #70757a;
}

/* Footer */
.site-footer {
    background: #202124;
    color: #9aa0a6;
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #9aa0a6;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid #3c4043;
    padding-top: 30px;
    text-align: center;
}

/* FAQ模块样式 */
.faq-section {
    padding: 40px 0;
    background: #f9f9f9;
}

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

.faq-title {
    text-align: center;
    margin-bottom: 30px;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-question {
    font-weight: bold;
    margin-bottom: 10px;
}

.faq-answer {
    color: #666;
}

/* Category Archive Page Styles - Higher Specificity */
body.category .main-content,
body.archive .main-content {
    padding: 40px 0;
}

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

body.category .archive-header,
body.archive .archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

body.category .archive-title,
body.archive .archive-title {
    font-size: 42px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 15px;
}

body.category .archive-description,
body.archive .archive-description {
    font-size: 18px;
    color: #5f6368;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

body.category .archive-meta,
body.archive .archive-meta {
    margin-top: 20px;
    font-size: 14px;
    color: #70757a;
}

body.category .archive-content,
body.archive .archive-content {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 40px !important;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

body.category .posts-grid,
body.archive .posts-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
}

body.category .post-card,
body.archive .post-card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
    display: flex !important;
    flex-direction: column !important;
}

body.category .post-card:hover,
body.archive .post-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}
.archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

.archive-title {
    font-size: 42px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 18px;
    color: #5f6368;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.archive-meta {
    margin-top: 20px;
    font-size: 14px;
    color: #70757a;
}

.archive-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.archive-content .posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.archive-content .post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.archive-content .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.archive-content .post-card .post-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.archive-content .post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-content .post-card .post-thumbnail .no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.archive-content .post-card .post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.archive-content .post-card .post-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.3;
}

.archive-content .post-card .post-title a {
    color: #202124;
    text-decoration: none;
    transition: color 0.3s;
}

.archive-content .post-card .post-title a:hover {
    color: #1a73e8;
}

.archive-content .post-card .post-excerpt {
    color: #5f6368;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 14px;
}

.archive-content .post-card .post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #70757a;
    margin-top: auto;
    flex-wrap: wrap;
}

/* Pagination Styles */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 10px 15px;
    background: white;
    color: #5f6368;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e8eaed;
    transition: all 0.3s;
}

.pagination li a:hover {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.pagination li .current {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* Archive Page Sidebar */
.archive-content .sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.sidebar {
    position: relative;
}

/* Reset any conflicting styles */
.sidebar * {
    box-sizing: border-box;
}

/* Widget Styles */
.widget {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #202124;
    font-weight: 500;
    margin-top: 0;
}

.widget.chrome-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.widget.chrome-download h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: white;
}

.widget.chrome-download p {
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 14px;
    color: white;
}

.widget.chrome-download .download-button {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

.widget.chrome-download .download-button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.widget.categories,
.widget.popular-tags {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.widget.categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget.categories li {
    margin-bottom: 12px;
}

.widget.categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    color: #5f6368;
}

.widget.categories a:hover {
    background: #f8f9fa;
}

.widget.categories a.current {
    background: #e8f0fe;
    color: #1a73e8;
}

.widget.categories .count {
    background: #f1f3f4;
    color: #5f6368;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.widget.popular-tags .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget.popular-tags a {
    background: #f1f3f4;
    color: #5f6368;
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s;
}

.widget.popular-tags a:hover {
    background: #e8eaed;
}

.no-posts {
    text-align: center;
    padding: 60px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-posts .icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-posts h2 {
    font-size: 24px;
    color: #202124;
    margin-bottom: 15px;
}

.no-posts p {
    color: #5f6368;
    margin-bottom: 30px;
}

.no-posts .btn {
    display: inline-block;
    background: #1a73e8;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.no-posts .btn:hover {
    background: #1557b0;
}

/* Additional Archive Page Styles */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.posts-container {
    min-height: 400px;
}

.archive-content .posts-container {
    width: 100%;
    overflow: hidden;
}

/* Ensure category page styles take precedence */
body.category .archive-content,
body.category .posts-grid,
body.category .post-card,
body.category .sidebar {
    /* This ensures category page styles are applied */
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-section .posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Archive Page Mobile Styles */
    .archive-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .archive-content .sidebar {
        order: 2;
        margin-top: 20px;
    }
    
    .archive-content .posts-container {
        order: 1;
    }
    
    .archive-content .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .archive-content .post-card .post-thumbnail {
        height: 200px !important;
    }
    
    .archive-content .post-card .post-content {
        padding: 15px !important;
    }
    
    .archive-content .post-card .post-title {
        font-size: 16px !important;
    }
    
    .archive-title {
        font-size: 32px !important;
    }
    
    .archive-header {
        padding: 40px 20px !important;
    }
    
    .widget {
        margin-bottom: 20px;
    }
    
    .widget.chrome-download {
        padding: 20px;
    }
}

/* Upload Form Styles */
.upload-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.btn-upload {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-upload:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}