/* 摩羯座影视网 - 专业广告投放平台 */

/* ========== CSS变量主题系统 ========== */
:root {
    /* 浅色主题 */
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-light: #a3bffa;
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(102, 126, 234, 0.1);
    --shadow-lg: 0 10px 30px rgba(102, 126, 234, 0.15);
    --shadow-xl: 0 20px 40px rgba(102, 126, 234, 0.2);
    --gradient-success: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --gradient-warning: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    --gradient-premium: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
}

[data-theme="dark"] {
    /* 深色主题 */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #21262d;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-light: #484f58;
    --accent-primary: #a3bffa;
    --accent-secondary: #d6bcfa;
    --accent-light: #c3dafe;
    --border-color: #30363d;
    --border-light: #21262d;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* ========== 主容器 ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

/* ========== 顶部导航 ========== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-brand svg {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========== 页面头部 ========== */
.page-header {
    position: relative;
    padding: 64px 48px;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -30px) scale(1.1); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.page-header h1 {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.header-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    opacity: 0.95;
    margin-bottom: 48px;
    font-weight: 300;
}

/* 核心优势统计 */
.header-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

/* ========== 区块标题 ========== */
.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(24px, 4vw, 32px);
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
}

/* ========== 广告区域 ========== */
.pos-section {
    padding: 64px 48px;
}

/* 温馨提示模块 */
.price-notice {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
}

.price-notice:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.notice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-icon svg {
    color: #ffffff;
}

.notice-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.notice-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
    margin: 0;
}

.notice-content strong {
    color: var(--accent-primary);
    font-weight: 600;
}

/* 广告卡片 */
.pos-card-wrapper {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.pos-card-wrapper:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pos-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-premium);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
}

.pos-badge.exclusive {
    background: var(--gradient-warning);
}

.pos-badge.economy {
    background: var(--gradient-success);
}

.pos-card {
    position: relative;
}

/* 广告头部 */
.pos-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.pos-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--border-color);
    line-height: 1;
    min-width: 80px;
}

.pos-title-group {
    flex: 1;
}

.pos-title-group h3 {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pos-tag {
    display: inline-block;
    background: var(--bg-gradient);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

/* 广告内容 */
.pos-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 32px;
    margin-bottom: 32px;
}

/* 资料准备模块 - 占据整行 */
.prepare-materials {
    grid-column: 1 / -1;
}

.pos-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary);
}

/* 选项卡切换按钮 */
.preview-tabs {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
}

.tab-btn {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-primary);
}

.tab-btn.active {
    background: var(--bg-gradient);
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.tab-btn svg {
    flex-shrink: 0;
}

/* 图片容器 */
.preview-images {
    position: relative;
    min-height: 200px;
}

.pos-preview img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.pos-preview:hover img {
    transform: scale(1.02);
}

.pos-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pos-description h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pos-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.display-mode {
    background: var(--bg-primary);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
    font-size: 14px;
    margin-bottom: 16px;
}

/* 8个广告位置模块 */
.pos-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.pos-slot {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: default;
}

.pos-slot:hover {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 规格网格 */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.spec-item svg {
    flex-shrink: 0;
    color: var(--accent-primary);
    margin-top: 2px;
}

.spec-item.disabled {
    opacity: 0.5;
}

.spec-item.disabled svg {
    color: var(--text-muted);
}

.spec-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.spec-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 价格表格 */
.pricing-table {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

/* 详细介绍模块 */
.detail-intro {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.detail-intro h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-intro h4::before {
    content: '📋';
    font-size: 20px;
}

.detail-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
    margin: 0;
}

/* 你需要准备的资料模块 */
.prepare-materials {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    position: relative;
}

.prepare-materials h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prepare-materials h4::before {
    content: '📦';
    font-size: 16px;
}

.materials-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 10px;
    background: var(--bg-gradient);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    z-index: 10;
}

.materials-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.materials-copy-btn svg {
    flex-shrink: 0;
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.material-item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-xs);
    transform: translateX(2px);
}

.material-label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
}

.material-label svg {
    color: var(--accent-primary);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.material-content {
    flex: 1;
}

.material-value {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.material-example {
    color: var(--accent-primary);
    font-size: 12px;
    font-family: "Courier New", monospace;
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    word-break: break-all;
}

.pricing-table h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.price-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.price-card.popular {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-gradient);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.price-duration {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.price-amount {
    margin-bottom: 12px;
}

.price-note {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
}

.price-note-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* ========== 投放指南 ========== */
.guidelines-section {
    padding: 64px 48px;
    background: var(--bg-primary);
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.guideline-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.guideline-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.guideline-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.guideline-icon svg {
    color: #ffffff;
}

.guideline-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.guideline-card ul {
    list-style: none;
}

.guideline-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.guideline-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

/* ========== 常见问题 ========== */
.faq-section {
    padding: 64px 48px;
    border-top: 1px solid var(--border-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--accent-primary);
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: var(--bg-primary);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* ========== 页面底部 ========== */
.page-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 48px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 14px;
}

/* ========== 悬浮联系方式 ========== */
.float-contact {
    position: fixed;
    right: 24px;
    bottom: 80px;
    z-index: 999;
}

.contact-toggle {
    width: 56px;
    height: 56px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.contact-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.contact-toggle svg {
    color: #ffffff;
    transition: transform 0.3s ease;
}

.contact-toggle:hover svg {
    transform: rotate(20deg);
}

.contact-body {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 260px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--accent-primary);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-body.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-gradient);
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
}

.contact-header h5 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.contact-close {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.contact-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.contact-close svg {
    color: #ffffff;
}

.copy-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.copy-item:last-child {
    border-bottom: none;
}

.copy-item .label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.copy-item .text {
    font-size: 14px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: "Courier New", monospace;
}

.copy-btn {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ========== 主题切换按钮 ========== */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 5px;
    z-index: 10000;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    padding: 0;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: translateY(-2px) rotate(20deg);
    box-shadow: var(--shadow-lg);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

/* ========== 复制提示 ========== */
#copyTip {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--bg-gradient);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: var(--shadow-lg);
}

#copyTip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== 图片放大遮罩 ========== */
.img-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    backdrop-filter: blur(10px);
}

.zoom-view {
    max-width: 95%;
    max-height: 90%;
    transition: transform 0.1s ease;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ========== 响应式布局 - 平板端 ========== */
@media (max-width: 1024px) {
    body {
        padding: 12px;
    }
    
    .top-nav {
        padding: 12px 24px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .page-header {
        padding: 48px 32px;
    }
    
    .header-stats {
        gap: 24px;
    }

    .pos-section {
        padding: 48px 32px;
    }

    .pos-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .prepare-materials {
        grid-column: 1 / -1;
        padding: 14px;
    }

    .pos-slots {
        grid-template-columns: repeat(4, 1fr);
    }

    .guidelines-section {
        padding: 48px 32px;
    }
    
    .faq-section {
        padding: 48px 32px;
    }
    
    .page-footer {
        padding: 32px;
    }
    
    .float-contact {
        width: 46px;
        right: 16px;
    }
}

/* ========== 响应式布局 - 手机端 ========== */
@media (max-width: 768px) {
    body {
        padding: 8px;
        padding-bottom: 100px;
    }
    
    .container {
        border-radius: 16px;
    }
    
    .top-nav {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
    
    .page-header {
        padding: 32px 20px;
    }
    
    .header-badge {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .price-notice {
        flex-direction: column;
        padding: 16px 18px;
        margin-bottom: 28px;
        gap: 12px;
    }
    
    .notice-icon {
        width: 40px;
        height: 40px;
    }
    
    .notice-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .notice-content h5 {
        font-size: 15px;
    }
    
    .notice-content p {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .ad-section {
        padding: 32px 20px;
    }
    
    .section-header {
        margin-bottom: 28px;
    }
    
    .ad-card-wrapper {
        padding: 20px;
        margin-bottom: 28px;
    }
    
    .ad-badge {
        top: 12px;
        right: 12px;
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .ad-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .pos-number {
        font-size: 36px;
    }

    .pos-title-group h3 {
        font-size: 20px;
    }

    .pos-content {
        gap: 20px;
    }

    .prepare-materials {
        grid-column: 1 / -1;
        padding: 12px;
    }

    .pos-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pos-slot {
        padding: 16px 12px;
        font-size: 14px;
    }

    /* 选项卡响应式 */
    .preview-tabs {
        padding: 10px;
        gap: 6px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
        gap: 4px;
    }

    .tab-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .price-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-table {
        padding: 20px 16px;
    }
    
    .guidelines-section {
        padding: 32px 20px;
    }
    
    .guidelines-grid {
        grid-template-columns: 1fr;
    }
    
    .guideline-card {
        padding: 24px;
    }
    
    .faq-section {
        padding: 32px 20px;
    }
    
    .faq-item summary {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .faq-item p {
        padding: 0 20px 16px;
    }
    
    .page-footer {
        padding: 24px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* 手机端：联系方式固定右下角 */
    .float-contact {
        bottom: 20px;
        right: 8px;
    }
    
    .contact-toggle {
        width: 52px;
        height: 52px;
    }
    
    .contact-body {
        width: 240px;
        bottom: 62px;
        right: -8px;
    }
    
    .contact-header {
        padding: 14px 18px;
    }
    
    .contact-header h5 {
        font-size: 15px;
    }
    
    .copy-item {
        padding: 14px 18px;
    }
    
    .copy-item .label {
        font-size: 11px;
    }
    
    .copy-item .text {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .copy-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .theme-toggle {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }
    
    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 响应式布局 - 小屏手机 ========== */
@media (max-width: 480px) {
    body {
        padding: 4px;
        padding-bottom: 100px;
    }
    
    .page-header {
        padding: 24px 16px;
    }

    .pos-section {
        padding: 24px 12px;
    }

    .pos-card-wrapper {
        padding: 16px;
    }

    .pos-number {
        font-size: 28px;
        min-width: 60px;
    }

    .guidelines-section,
    .faq-section {
        padding: 24px 12px;
    }

    .guideline-card {
        padding: 20px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* ========== 大屏优化 ========== */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .page-header {
        padding: 80px 64px;
    }
    
    .ad-section {
        padding: 80px 64px;
    }
    
    .guidelines-section {
        padding: 80px 64px;
    }
    
    .faq-section {
        padding: 80px 64px;
    }
    
    .page-footer {
        padding: 64px;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .float-contact,
    .theme-toggle,
    .nav-links,
    .img-overlay {
        display: none !important;
    }
    
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        max-width: 100%;
    }
    
    .page-header {
        background: #667eea;
        color: white;
    }
}
