/* ===== 全局 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #fff7e6 0%, #ffe4cc 100%);
    color: #4a4a4a;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(255, 245, 235, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(255, 140, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #ff8c00;
    font-size: 2rem;
}

.logo h1 {
    color: #cc6600;
    font-size: 1.8rem;
    font-weight: 600;
}

.logo h1 span {
    color: #ffaa33;
    font-size: 1.8rem;
    margin-left: 5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu li a {
    color: #5a3e2b;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.nav-menu li a:hover, .nav-menu li a.active {
    background: #ff8c00;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.4);
}

.admin-link {
    background: #ffe0cc;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(120deg, #ffaa33, #ff8c00);
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: white;
    color: #ff8c00;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-primary {
    background: #cc6600;
    color: white;
}

.btn-primary:hover {
    background: #b35900;
}

/* ===== 章节通用 ===== */
.section {
    padding: 80px 0;
}

.bg-light {
    background: #fff9f2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #b35900;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffaa33, #ff8c00);
    border-radius: 2px;
}

/* ===== 产品卡片 ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid rgba(255, 140, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.2);
    border-color: #ff8c00;
}

.product-image {
    font-size: 4rem;
    color: #ff8c00;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: #b35900;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: #7a5a3e;
    margin-bottom: 1rem;
}

/* ===== 服务卡片 ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.1);
    transition: 0.3s;
}

.service-item:hover {
    background: #ff8c00;
    color: white;
}

.service-item:hover .service-icon {
    color: white;
}

.service-icon {
    font-size: 3rem;
    color: #ff8c00;
    margin-bottom: 1rem;
}

/* ===== 分类过滤器 ===== */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background: white;
    color: #ff8c00;
    text-decoration: none;
    border: 1px solid #ff8c00;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: #ff8c00;
    color: white;
}

/* ===== 详情页卡片 ===== */
.detail-card {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.1);
}

.detail-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0e0d0;
    padding-bottom: 1rem;
}

.detail-header h1 {
    color: #b35900;
    font-size: 2.5rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-image {
    text-align: center;
    padding: 2rem;
    background: #fff5e6;
    border-radius: 20px;
}

.detail-description pre {
    background: #fff5e6;
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
}

.detail-footer {
    text-align: center;
}

/* ===== 下载卡片 ===== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.download-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid rgba(255, 140, 0, 0.1);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.15);
}

.download-icon {
    font-size: 3rem;
    color: #ff8c00;
    margin-bottom: 1rem;
    text-align: center;
}

.download-card h3 {
    color: #b35900;
    margin-bottom: 0.5rem;
    text-align: center;
}

.download-card p {
    color: #7a5a3e;
    margin-bottom: 1rem;
    text-align: center;
}

.download-meta {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #a6806b;
}

.download-meta i {
    margin-right: 4px;
    color: #ff8c00;
}

.btn-download {
    display: block;
    text-align: center;
    background: #ff8c00;
    color: white;
    border: none;
}

.btn-download:hover {
    background: #e67e00;
}

/* ===== 页脚 ===== */
.footer {
    background: #b35900;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .nav-menu {
        display: none;
    }
    .detail-content {
        grid-template-columns: 1fr;
    }
}
