/* 内容页面样式 */

/* 覆盖工具页面的 overflow 设置，允许内容页面滚动 */
html {
    overflow-y: auto !important;
    height: auto !important;
}

body {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* 页面容器 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部 */
.page-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px var(--shadow);
}

.page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-logo:hover {
    opacity: 0.8;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    padding: 8px 0;
    display: block;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* 导航操作按钮 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.nav-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* 主要内容区域 */
.page-main {
    min-height: calc(100vh - 200px);
    padding: 60px 0;
}

/* 页面标题 */
.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 内容区域 */
.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    margin-top: 40px;
}

.content-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    margin-top: 30px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.content-section ul,
.content-section ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.content-section li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.content-section a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.content-section a:hover {
    border-bottom-color: var(--accent-color);
}

/* 特色卡片 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* FAQ 手风琴 */
.faq-list {
    margin: 40px 0;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--accent-color);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.show {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 20px 24px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* 页脚 */
.page-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
}

/* 联系表单 */
.contact-form {
    max-width: 600px;
    margin: 40px 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-button {
    padding: 14px 32px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.form-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-nav {
        padding: 0 16px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
        box-shadow: -4px 0 24px var(--shadow);
        transition: right 0.3s;
        z-index: 1000;
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        padding: 16px 0;
        font-size: 16px;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .page-logo {
        font-size: 20px;
    }

    .page-main {
        padding: 40px 0;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 18px;
    }

    .content-section h2 {
        font-size: 26px;
    }

    .content-section h3 {
        font-size: 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-container {
        padding: 0 16px;
    }
}

/* 打印样式 */
@media print {
    .page-header,
    .page-footer,
    .nav-actions,
    .mobile-menu-toggle {
        display: none;
    }

    .page-main {
        padding: 0;
    }

    .page-container {
        max-width: 100%;
    }

    body {
        background: white;
        color: black;
    }
}


/* 语言选择器 */
.lang-selector {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    display: none;
    min-width: 160px;
    box-shadow: 0 8px 24px var(--shadow);
    z-index: 1000;
}

.lang-selector.active .lang-dropdown {
    display: block;
}

.lang-option {
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-option:hover {
    background: var(--bg-tertiary);
}

.lang-option.active {
    background: var(--accent-color);
    color: #ffffff;
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10000;
    pointer-events: none;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px var(--shadow);
}

.toast.show {
    opacity: 1;
}


/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary, #fff);
    border-top: 1px solid var(--border-color, #e0e0e0);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 16px 24px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary, #666);
    flex: 1;
    min-width: 200px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-btn.accept {
    background: #0066cc;
    color: white;
}

.cookie-btn.accept:hover {
    background: #0052a3;
}

.cookie-btn.decline {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-primary, #333);
    border: 1px solid var(--border-color, #ddd);
}

.cookie-btn.decline:hover {
    background: var(--bg-tertiary, #eee);
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}
