/*
Theme Name: OUTZEON - Portable Solar
Theme URI: https://outzeon.com
Author: 沙沙
Author URI: https://outzeon.com
Description: OUTZEON 独立站 WordPress 主题 - 便携式太阳能充电板电商主题
Version: 1.0.0
License: GPL v2 or later
Text Domain: outzeon
*/

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #2d6a4f;
    --green-light: #40916c;
    --green-dark: #1b4332;
    --orange: #e76f51;
    --orange-light: #f4a261;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text: #1a1a2e;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --border: #e9ecef;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--green-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--green);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--green-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}

.btn-secondary:hover {
    background: var(--green);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* === Top Bar === */
.top-bar {
    background: var(--green-dark);
    color: var(--text-white);
    padding: 8px 0;
    font-size: 0.85rem;
    text-align: center;
}

.top-bar span {
    margin: 0 16px;
}

/* === Header === */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.5px;
}

.site-logo span {
    color: var(--orange);
}

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

.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    color: var(--text);
    font-size: 1.2rem;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--orange);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* === Hero === */
.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-light) 50%, var(--green) 100%);
    color: var(--text-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '☀️';
    position: absolute;
    top: -60px;
    right: -60px;
    font-size: 300px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--orange-light);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--orange);
    color: white;
}

.hero .btn-primary:hover {
    background: var(--orange-light);
}

.hero .btn-secondary {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 48px;
}

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

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
}

/* === Features === */
.features {
    background: var(--bg-light);
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* === Category Sections === */
.category-section {
    padding: 80px 0;
}

.category-section:nth-child(even) {
    background: var(--bg-light);
}

.category-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.category-image {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.category-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-text p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.category-text ul {
    list-style: none;
    margin-bottom: 28px;
}

.category-text li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.category-text li::before {
    content: '✓ ';
    color: var(--green);
    font-weight: 700;
}

/* === Products Grid === */
.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--orange);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
}

.product-price .original {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.product-rating {
    margin: 8px 0;
    color: #f4a261;
    font-size: 0.85rem;
}

/* === Trust Badges === */
.trust-section {
    background: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.trust-item {
    padding: 20px;
}

.trust-item .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.trust-item h4 {
    font-weight: 600;
    margin-bottom: 6px;
}

.trust-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* === Newsletter === */
.newsletter {
    background: var(--green-dark);
    color: var(--text-white);
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.newsletter p {
    opacity: 0.85;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--orange-light);
}

/* === Footer === */
.site-footer {
    background: #111;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
}

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

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

.footer-col a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: white;
}

/* === Blog === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.blog-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.blog-card a {
    display: inline-block;
    margin-top: 12px;
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-card a:hover {
    color: var(--green-dark);
}

/* === Product Detail === */
.product-detail {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-gallery {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    font-size: 5rem;
}

.product-info-detail h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-info-detail .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 20px;
}

.product-info-detail .description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-specs {
    margin-bottom: 24px;
}

.product-specs h3 {
    font-weight: 600;
    margin-bottom: 12px;
}

.product-specs li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.add-to-cart {
    width: 100%;
    padding: 16px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

/* === Breadcrumb === */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--green);
}

.breadcrumb span {
    margin: 0 8px;
}

/* === Related Products === */
.related-products {
    padding: 60px 0;
    background: var(--bg-light);
}

/* === Page Header === */
.page-header {
    background: var(--green-dark);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
}

.page-header p {
    opacity: 0.85;
    margin-top: 8px;
}

/* === Blog Single === */
.blog-single {
    padding: 60px 0;
}

.blog-single-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-single h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.blog-single .meta {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.blog-single .content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.blog-single .content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 32px 0 16px;
}

.blog-single .content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 24px 0 12px;
}

.blog-single .content p {
    margin-bottom: 16px;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .features-grid,
    .products-grid,
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 30px;
        flex-wrap: wrap;
    }

    .category-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .products-grid,
    .trust-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
