/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 头部导航 */
.header {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 40px;
    height: 40px;
    fill: #e53935;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-outline {
    background: #fff;
    border-color: #e53935;
    color: #e53935;
}

.btn-outline:hover {
    background: #e53935;
    color: #fff;
}

.btn-primary {
    background: #e53935;
    color: #fff;
}

.btn-primary:hover {
    background: #c62828;
}

/* 主要内容区域 - 默认两列 */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* 左侧内容区 */
.content-left {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ========== 首页三列布局 ========== */
.home-container {
    max-width: 1400px;
    margin: 25px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.2fr 280px;
    gap: 20px;
    align-items: stretch;
}

.home-column {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.home-left {
    min-width: 0;
}

.home-center {
    min-width: 0;
}

.home-right {
    min-width: 0;
}

/* 列内滚动区域 */
.scroll-content {
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
    padding-right: 5px;
}

.scroll-content::-webkit-scrollbar {
    width: 4px;
}

.scroll-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scroll-content::-webkit-scrollbar-thumb {
    background: #e53935;
    border-radius: 4px;
}

.scroll-content::-webkit-scrollbar-thumb:hover {
    background: #c62828;
}

/* 视频区域 */
.video-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* FAQ样式 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 4px solid #e53935;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.1);
}

.faq-q {
    color: #e53935;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.faq-a {
    color: #555;
    font-size: 13px;
    line-height: 1.7;
}

.faq-a a {
    color: #e53935;
    text-decoration: underline;
}

.text-warning {
    color: #ff9800;
}

.text-danger {
    color: #c62828;
}

/* 右侧下载区域 */
.home-right .section-title {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
}

.download-section {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.download-section .download-btn {
    display: block;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-section .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.download-section .version-info {
    margin-top: 12px;
    font-size: 12px;
    color: #999;
}

.quick-links-section {
    flex: 1;
}

.quick-link-btn {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s;
}

.quick-link-btn:last-child {
    margin-bottom: 0;
}

.quick-link-btn:hover {
    background: #e53935;
    border-color: #e53935;
    color: #fff;
}

/* 右侧额外信息 */
.info-box {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border-radius: 8px;
    border-left: 3px solid #ffc107;
}

.info-box p {
    font-size: 12px;
    color: #f57c00;
    line-height: 1.6;
    margin: 0;
}

/* 三列响应式 */
@media (max-width: 1200px) {
    .home-container {
        grid-template-columns: 1fr 1fr;
    }

    .home-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .home-right .section-title:first-child {
        grid-column: 1 / -1;
    }

    .download-section {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .scroll-content {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .home-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .home-column {
        padding: 20px;
    }

    .home-right {
        grid-template-columns: 1fr;
    }

    .scroll-content {
        max-height: none;
        overflow-y: visible;
    }

    .download-section {
        border-bottom: 1px dashed #eee;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
}

.section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e53935;
}

.tutorial-intro {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.tutorial-intro a {
    color: #e53935;
}

.step-list {
    list-style: none;
}

.step-item {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    color: #555;
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    color: #e53935;
    font-weight: bold;
    margin-right: 5px;
}

.warning-text {
    color: #e53935;
}

.notice-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff8e1;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.notice-title {
    color: #f57c00;
    font-size: 16px;
    margin-bottom: 15px;
}

.notice-list {
    list-style: none;
}

.notice-item {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    padding-left: 20px;
    position: relative;
}

.notice-item:before {
    content: '•';
    position: absolute;
    left: 5px;
    color: #f57c00;
}

/* 右侧下载区 */
.content-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.download-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.download-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(229, 57, 53, 0.4);
}

.version-info {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
}

/* 公告弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

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

.modal-title {
    font-size: 18px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.announcement-item {
    padding: 10px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px dashed #eee;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item.warning {
    color: #e53935;
}

.announcement-item.highlight {
    color: #f57c00;
    font-weight: bold;
}

/* 卡密查询页面 */
.query-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 0 20px;
}

.query-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.query-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #e53935;
}

.query-btn {
    width: 100%;
    padding: 14px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.query-btn:hover {
    background: #c62828;
}

/* 查询结果 */
.result-card {
    margin-top: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
}

.result-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: #666;
}

.result-value {
    color: #333;
    font-weight: 500;
}

/* 状态标签 */
.status-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.status-unused {
    background: #e3f2fd;
    color: #1976d2;
}

.status-active {
    background: #e8f5e9;
    color: #388e3c;
}

.status-expired {
    background: #fafafa;
    color: #757575;
}

.status-banned {
    background: #ffebee;
    color: #c62828;
}

.status-error {
    background: #fff3e0;
    color: #e65100;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #7fa8b8;
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer p {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo-text {
        font-size: 16px;
    }

    .nav-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .main-container {
        grid-template-columns: 1fr;
        margin: 15px auto;
        padding: 0 15px;
    }

    .content-left {
        padding: 20px;
    }

    .content-right {
        position: static;
    }

    .section-title {
        font-size: 16px;
    }

    .query-card {
        padding: 25px 20px;
    }

    .query-title {
        font-size: 20px;
    }

    .modal {
        width: 95%;
        margin: 10px;
    }
}

