* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

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

a {
    text-decoration: none;
    color: #1890ff;
    transition: color 0.3s;
}

a:hover {
    color: #40a9ff;
}

/* 头部 */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo .site-name {
    font-size: 24px;
    font-weight: 700;
}

.logo .site-name a {
    color: #1890ff;
}

.subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

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

.nav a {
    color: #555;
    font-size: 15px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

/* 主体 */
.main {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

/* Hero区域 */
.hero {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.hero > p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.search-box button {
    padding: 12px 24px;
    background: #faad14;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #ffc53d;
}

/* 区块标题 */
.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-left: 12px;
    border-left: 4px solid #1890ff;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h3 {
    font-size: 18px;
}

.tag {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
}

.tag.hot {
    background: #fff1f0;
    color: #f5222d;
}

.tag.new {
    background: #f6ffed;
    color: #52c41a;
}

.card-body {
    padding: 20px;
}

.code-number {
    font-size: 32px;
    font-weight: 700;
    color: #1890ff;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.code-desc {
    color: #666;
    font-size: 14px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.btn {
    padding: 8px 18px;
    background: #1890ff;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
}

.btn:hover {
    background: #40a9ff;
    color: #fff;
}

.btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.update-time {
    font-size: 12px;
    color: #999;
}

/* 使用指南 */
.guide {
    margin-bottom: 40px;
}

.guide-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.guide-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.step {
    width: 36px;
    height: 36px;
    background: #1890ff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.guide-item h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.guide-item p {
    color: #666;
    font-size: 14px;
}

/* 关于我们 */
.about {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.about p {
    margin-bottom: 15px;
    color: #555;
}

.about p:last-child {
    margin-bottom: 0;
}

/* 面包屑 */
.breadcrumb {
    padding: 10px 0 20px;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb span {
    color: #333;
}

/* 详情页 */
.detail {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.detail-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.detail-header h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.code-display {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #f6ffed;
    padding: 15px 30px;
    border-radius: 50px;
    border: 2px dashed #52c41a;
}

.code-display .label {
    font-size: 14px;
    color: #389e0d;
}

.code-display .code {
    font-size: 28px;
    font-weight: 700;
    color: #389e0d;
    letter-spacing: 3px;
}

.copy-btn {
    padding: 8px 16px;
    background: #52c41a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #73d13d;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #262626;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-section p {
    margin-bottom: 12px;
    color: #595959;
    line-height: 1.8;
}

.detail-section ul,
.detail-section ol {
    padding-left: 25px;
    color: #595959;
    line-height: 2;
}

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

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.adv-item {
    background: #f5f7fa;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
}

.adv-item h3 {
    color: #1890ff;
    margin-bottom: 8px;
    font-size: 16px;
}

.adv-item p {
    font-size: 13px;
    color: #8c8c8c;
    margin: 0;
}

.notice {
    background: #fffbe6;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #faad14;
}

.notice h2 {
    border-bottom: none;
    color: #d48806;
    padding-bottom: 0;
}

.notice p {
    color: #874d00;
    margin-bottom: 8px;
}

/* 相关推荐 */
.related {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.related h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.faq h3 {
    margin: 18px 0 6px;
    color: #262626;
    font-size: 16px;
}

.related-list a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.related-list a:last-child {
    border-bottom: none;
}

.error-page {
    max-width: 680px;
    margin: 80px auto;
    text-align: center;
}

.error-page h1 {
    margin-bottom: 12px;
    font-size: 32px;
}

.error-page p {
    margin-bottom: 24px;
    color: #666;
}

/* 底部 */
.footer {
    background: #262626;
    color: #8c8c8c;
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: #bfbfbf;
    margin: 0 5px;
}

.footer-links a:hover {
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav ul {
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .detail {
        padding: 20px;
    }
    
    .code-display {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
    
    .search-box {
        flex-direction: column;
    }
}
