/*
Theme Name: WAAP Seller Theme
Theme URI: 
Description: WAAP插件售卖系统专用主题
Version: 1.0.0
Author: WAAP Team
License: GPL2
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

a {
    text-decoration: none;
    color: #0073aa;
}

a:hover {
    color: #005a87;
}

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

/* 头部导航 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.site-logo span {
    color: #0073aa;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #666;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-actions .button {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
}

.user-actions .button-primary {
    background: #0073aa;
    color: #fff;
}

.user-actions .button-secondary {
    background: #f0f0f0;
    color: #333;
}

/* 页面标题区 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* 主要内容区 */
.site-main {
    padding: 40px 0;
}

/* 页脚 */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    margin: 0px 5px 0px 5px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    margin: 0px 5px 0px 5px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.button:hover {
    background: #005a87;
    color: #fff;
}

.button-large {
    padding: 15px 40px;
    font-size: 18px;
}

.button-small {
    padding: 6px 12px;
    font-size: 14px;
}

.button-success {
    background: #4caf50;
}

.button-success:hover {
    background: #45a049;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #666;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
}

/* 消息提示 */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 页面内容样式 */
.page-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    margin: 30px 0 15px;
    color: #333;
}

.page-content h2 {
    font-size: 22px;
}

.page-content h3 {
    font-size: 18px;
}

.page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-content ul,
.page-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content blockquote {
    border-left: 4px solid #0073aa;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.page-content a {
    color: #0073aa;
    text-decoration: underline;
}

.page-content a:hover {
    color: #005a87;
}

.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 带侧边栏的内容布局 */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-with-sidebar .content-main {
    min-width: 0;
}

.content-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.content-sidebar {
    min-width: 0;
}

.sidebar-widgets {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.widget ul li a:hover {
    color: #0073aa;
}

/* 搜索小工具样式 */
.widget_search .search-submit {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.widget_search .search-submit:hover {
    background: #005a87;
}

/* WP区块标题样式 */
.widget_block h2 {
    font-size: 18px;
}

/* 最近文章小工具样式 */
.widget_recent_entries ul li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.widget_recent_entries ul li a {
    font-weight: 500;
    color: #333;
}

.widget_recent_entries ul li a:hover {
    color: #0073aa;
}

.widget_recent_entries .post-date {
    font-size: 12px;
    color: #999;
}

/* 通用小工具样式 */
.widget p {
    color: #666;
    line-height: 1.7;
}

.widget select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.widget select:focus {
    border-color: #0073aa;
    outline: none;
}

/* 分类目录小工具 */
.widget_categories ul li,
.widget_archive ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories ul li a,
.widget_archive ul li a {
    flex: 1;
}

/* 标签云小工具 */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px !important;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.widget_tag_cloud .tagcloud a:hover {
    background: #0073aa;
    color: #fff;
}

/* 日历小工具 */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
    padding: 8px;
    text-align: center;
    border: 1px solid #eee;
}

.widget_calendar th {
    background: #f8f9fa;
    font-weight: 600;
}

.widget_calendar td a {
    color: #0073aa;
    font-weight: 600;
}

/* 文本小工具 */
.widget_text .textwidget {
    color: #666;
    line-height: 1.7;
}

/* 导航菜单小工具 */
.widget_nav_menu ul li {
    padding: 0;
    border-bottom: none;
}

.widget_nav_menu ul li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* 响应式侧边栏 */
@media (max-width: 768px) {
    .sidebar-widgets {
        padding: 20px;
    }

    .widget {
        margin-bottom: 25px;
    }
}

/* 文章样式 */
.post-meta {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.post-meta span {
    margin-right: 20px;
}

.post-thumbnail {
    margin: -40px -40px 30px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.post-tags a {
    color: #0073aa;
    text-decoration: none;
    margin-right: 10px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-navigation a {
    color: #0073aa;
    text-decoration: none;
}

.post-navigation .nav-next {
    text-align: right;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        gap: 15px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .page-content {
        padding: 20px;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        order: -1;
    }

    .content-box {
        padding: 25px;
    }

    .post-thumbnail {
        margin: -25px -25px 20px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .post-navigation .nav-next {
        text-align: left;
    }
}

/* 归档页面样式 */
.archive-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.archive-post-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.archive-post-item:first-child {
    padding-top: 0;
}

.archive-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.archive-post-item .post-thumbnail {
    flex-shrink: 0;
    width: 180px;
    border-radius: 6px;
    overflow: hidden;
}

.archive-post-item .post-thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.archive-post-item .post-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.archive-post-item .post-title a {
    color: #333;
    text-decoration: none;
}

.archive-post-item .post-title a:hover {
    color: #0073aa;
}

.archive-post-item .post-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.archive-post-item .post-meta span {
    margin-right: 15px;
}

.archive-post-item .post-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.archive-post-item .read-more {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.archive-post-item .read-more:hover {
    text-decoration: underline;
}

/* 搜索结果样式 */
.search-results-count {
    background: #e3f2fd;
    color: #1976d2;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-weight: 500;
}

.search-form-wrapper {
    margin-top: 25px;
}

.search-form-wrapper .search-form {
    display: flex;
    gap: 10px;
}

.search-form-wrapper .search-form input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.search-form-wrapper .search-form button {
    padding: 12px 25px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.search-form-wrapper .search-form button:hover {
    background: #005a87;
}

/* 分页样式 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .page-numbers:hover {
    background: #f5f5f5;
    border-color: #0073aa;
    color: #0073aa;
}

.pagination .page-numbers.current {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 10px 20px;
}

/* ==================== 首页/产品页样式 ==================== */

/* 我的授权区域 */
.my-licenses-section {
    margin-bottom: 50px;
}

.my-licenses-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.license-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4caf50;
}

.license-card.expired {
    border-left-color: #f44336;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.license-type {
    font-weight: bold;
    color: #333;
}

.license-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    background: #e8f5e9;
    color: #4caf50;
}

.license-card.expired .license-status {
    background: #ffebee;
    color: #f44336;
}

.license-key {
    display: block;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.license-expire {
    color: #666;
    font-size: 14px;
}

.license-actions {
    margin-top: 15px;
}

/* 产品区域 */
.products-section h2 {
    margin-bottom: 30px;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(450px, 550px));
    gap: 40px;
    justify-content: center;
    max-width: 1200px;
    padding-top: 15px;
    margin: 0 auto;
}

/* 两列按类型显示产品 */
.products-grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-column .column-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
}

.product-column .no-products {
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-header h3 {
    font-size: 18px;
    color: #333;
}

.product-type {
    padding: 5px 15px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px dashed #e0e0e0;
    border-bottom: 1px dashed #e0e0e0;
}

.product-meta .meta-item {
    flex: 1;
    text-align: center;
}

.product-meta .meta-label {
    color: #888;
    font-size: 13px;
}

.product-meta .meta-value {
    color: #333;
    font-weight: 600;
    font-size: 15px;
    margin-left: 4px;
}

/* 产品配置信息行 */
.product-meta-row {
    display: flex;
    padding: 8px 0;
    border-top: 1px dashed #e0e0e0;
    border-bottom: none;
    margin-bottom: 0;
    font-size: 14px;
}

.product-meta-row .product-meta-col {
    flex: 1;
}

.product-meta-row .product-meta-label {
    color: #666;
}

.product-meta-row .product-meta-value {
    color: #333;
}

/* 产品功能标签行 */
.product-meta-features {
    display: flex;
    padding: 10px 0;
    border-top: 1px dashed #e0e0e0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 13px;
}

.product-meta-features .feature-enabled {
    color: green;
}

.product-meta-features .feature-disabled {
    color: #999;
}

.product-meta-features .feature-spacer {
    margin-left: 20px;
}

.product-pricing {
    margin-bottom: 25px;
}

.pricing-tabs {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.pricing-tab {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.pricing-tab:hover,
.pricing-tab.active {
    border-color: #0073aa;
    background: #f0f7ff;
}

.pricing-tab.recommended {
    border-color: #ff9800;
    background: #fff8e1;
}

.pricing-tab.recommended.active,
.pricing-tab.recommended:hover {
    border-color: #0073aa;
    background: #f0f7ff;
}

.pricing-tab .badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ff9800;
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.pricing-tab .period {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.pricing-tab .price {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.product-actions .button {
    width: 100%;
    text-align: center;
}

.user-balance {
    color: #4caf50;
    font-weight: bold;
    margin-right: 10px;
}

/* 产品说明区块样式 */
.product-guide-section {
    margin-top: 30px;
    padding: 30px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 12px;
    margin-bottom: 40px;
}

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

.guide-title {
    text-align: center;
    font-size: 22px;
    color: #333;
    margin-bottom: 40px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.guide-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.guide-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
}

.guide-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.guide-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-list li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.guide-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.guide-faq {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.guide-faq h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-faq .faq-item {
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
    overflow: hidden;
    margin-bottom: 12px;
}

.guide-faq .faq-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.guide-faq .faq-item-header:hover {
    background: #e8ecef;
}

.guide-faq .faq-item-header h4 {
    font-size: 15px;
    color: #333;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

.guide-faq .faq-toggle {
    font-size: 0.7rem;
    color: #999;
    margin-left: 8px;
    flex-shrink: 0;
}

.guide-faq .faq-item-content {
    display: none;
    padding: 0 16px 12px;
}

.guide-faq .faq-item.active .faq-item-content {
    display: block;
}

.guide-faq .faq-item-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 首页/产品页响应式 */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .products-grid-two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .faq-list {
        grid-template-columns: 1fr;
    }

    .product-guide-section {
        padding: 40px 0;
    }
}


/* ==================== 用户中心样式 ==================== */

.user-center-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
}

.user-center-wrapper .content-main {
    min-width: 0;
    width: 100%;
    padding-right: 25px;
}

.user-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 26px;
    height: fit-content;
    min-width: 250px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.user-profile .avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info .username {
    font-weight: bold;
    color: #333;
}

.user-info .user-email {
    font-size: 12px;
    color: #666;
}

.user-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 6px;
    color: #666;
    transition: all 0.3s;
}

.user-nav a:hover,
.user-nav a.active {
    background: #f0f7ff;
    color: #0073aa;
}

.nav-icon {
    font-size: 18px;
}

.user-content h2 {
    margin-bottom: 25px;
    color: #333;
}

.user-content h3 {
    margin: 30px 0 20px;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

.stat-card .stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.stat-card .stat-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.stat-card .stat-number-yu {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: #666;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active,
.status-badge.order-completed {
    background: #e8f5e9;
    color: #4caf50;
}

.status-badge.expired,
.status-badge.order-cancelled {
    background: #ffebee;
    color: #f44336;
}

.status-badge.order-pending {
    background: #fff8e1;
    color: #ff9800;
}

.status-badge.unused {
    background: #e3f2fd;
    color: #2196f3;
}

.status-badge.used {
    background: #f3e5f5;
    color: #9c27b0;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
}

.licenses-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.license-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    border-left: 4px solid #4caf50;
}

.license-item.expired {
    border-left-color: #f44336;
}

.license-item .license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.license-item .license-type {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.license-item .license-key-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.license-item .license-key {
    flex: 1;
    display: block;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 16px;
    word-break: break-all;
}

.license-item .copy-license-btn {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border: 1px solid #2196f3;
    color: #2196f3;
    cursor: pointer;
    transition: all 0.3s;
}

.license-item .copy-license-btn:hover {
    background: #2196f3;
    color: #fff;
}

/* 使用情况统计 */
.usage-stats-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.usage-bar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.usage-bar .usage-label {
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
    min-width: 90px;
}

.usage-bar .usage-count {
    font-weight: bold;
    color: #2196f3;
    font-size: 16px;
    white-space: nowrap;
    min-width: 60px;
}

.usage-bar .usage-progress {
    flex: 1;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.usage-bar .usage-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* 旧样式兼容 */
.instance-usage-bar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.instance-usage-bar .instance-label {
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

.instance-usage-bar .instance-count {
    font-weight: bold;
    color: #2196f3;
    font-size: 16px;
    white-space: nowrap;
}

.instance-usage-bar .instance-progress {
    flex: 1;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.instance-usage-bar .instance-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.license-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.license-item .license-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.orders-section .data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.orders-section .data-table th,
.orders-section .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.orders-section .data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.orders-section .data-table td {
    color: #666;
}

.orders-section .data-table .button-small {
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
}

.orders-section .data-table tr:hover {
    background: #f8f9fa;
}

.orders-section .data-table td:first-child,
.orders-section .data-table th:first-child {
    padding-left: 20px;
}

.orders-section .data-table td:last-child,
.orders-section .data-table th:last-child {
    padding-right: 20px;
}

/* 订单表格列宽优化 */
.orders-section .data-table th:nth-child(1),
.orders-section .data-table td:nth-child(1) {
    min-width: 140px;
}

.orders-section .data-table th:nth-child(2),
.orders-section .data-table td:nth-child(2) {
    min-width: 180px;
}

.orders-section .data-table th:nth-child(3),
.orders-section .data-table td:nth-child(3) {
    min-width: 120px;
}

.orders-section .data-table th:nth-child(4),
.orders-section .data-table td:nth-child(4) {
    min-width: 100px;
}

.orders-section .data-table th:nth-child(5),
.orders-section .data-table td:nth-child(5) {
    min-width: 90px;
}

.orders-section .data-table th:nth-child(6),
.orders-section .data-table td:nth-child(6) {
    min-width: 130px;
}

.orders-section .data-table th:nth-child(7),
.orders-section .data-table td:nth-child(7) {
    min-width: 180px;
    text-align: center;
    white-space: nowrap;
}

/* 订单操作按钮样式 */
.orders-section .order-actions form {
    display: inline-block;
    margin-left: 5px;
}

.orders-section .order-actions .button-danger {
    background: #dc3232;
    color: #fff;
    border-color: #dc3232;
}

.orders-section .order-actions .button-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.affiliate-link-card {
    margin-bottom: 25px;
}

/* 推广宣传语横幅 */
.affiliate-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.banner-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.banner-text {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 400;
}

.affiliate-link-card h3 {
    margin-bottom: 15px;
}

.link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.link-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 14px;
}

.affiliate-link-card .tip {
    color: #666;
    font-size: 14px;
}

.affiliate-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.affiliate-stats-grid .stat-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.affiliate-stats-grid .stat-card.highlight .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.balance-info-card {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.balance-info-card p {
    margin: 0;
    color: #2e7d32;
}

/* 订单分页样式 */
.orders-section .pagination {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.orders-section .pagination-info {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.orders-section .pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.orders-section .pagination-links .button {
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.orders-section .pagination-links .button:hover {
    background: #f5f5f5;
    border-color: #0073aa;
    color: #0073aa;
}

.orders-section .pagination-links .button.disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.orders-section .pagination-links .button.current {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    font-weight: bold;
}

/* 用户中心授权分页样式 */
.licenses-section .pagination-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.licenses-section .pagination-links .button {
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.licenses-section .pagination-links .button:hover {
    background: #f5f5f5;
    border-color: #0073aa;
    color: #0073aa;
}

.licenses-section .pagination-links .button.button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    font-weight: bold;
}

/* 推广订单记录样式 */
.affiliate-orders-section {
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.affiliate-orders-section h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

.affiliate-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.affiliate-orders-table th,
.affiliate-orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.affiliate-orders-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.affiliate-orders-table .rebate-amount {
    color: #46b450;
    font-weight: 600;
}

.affiliate-orders-table .status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.affiliate-orders-table .status-badge.order-pending {
    background: #fff3cd;
    color: #856404;
}

.affiliate-orders-table .status-badge.order-completed {
    background: #d4edda;
    color: #155724;
}

.affiliate-orders-table .status-badge.order-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.affiliate-orders-table .status-badge.order-expired {
    background: #e2e3e5;
    color: #383d41;
}

/* 推广订单分页样式 */
.affiliate-orders-section .pagination {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.affiliate-orders-section .pagination-info {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.affiliate-orders-section .pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.affiliate-orders-section .pagination-links .button {
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.affiliate-orders-section .pagination-links .button:hover {
    background: #f5f5f5;
    border-color: #0073aa;
    color: #0073aa;
}

.affiliate-orders-section .pagination-links .button.disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.affiliate-orders-section .pagination-links .button.current {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .user-center-wrapper {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        order: -1;
    }

    .stats-grid,
    .affiliate-stats-grid {
        grid-template-columns: 1fr;
    }

    .license-details {
        grid-template-columns: 1fr;
    }

    .orders-section .pagination-links {
        gap: 5px;
    }

    .orders-section .pagination-links .button {
        padding: 6px 10px;
        font-size: 12px;
    }
}


/* ==================== 支付页面样式 ==================== */

.pay-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pay-main .card {
    margin-bottom: 25px;
}

.pay-main h2 {
    margin-bottom: 20px;
    color: #333;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: #666;
}

.info-row .value {
    font-weight: 500;
}

.info-row .original-price {
    text-decoration: line-through;
    color: #999;
}

.info-row .discount {
    color: #e74c3c;
}

.countdown-timer {
    color: #e74c3c;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    position: relative;
    top: -2px;
}

.info-row.total {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #333;
}

.info-row.total .label,
.info-row.total .value {
    font-size: 18px;
    font-weight: bold;
}

.total-price {
    color: #e74c3c;
    font-size: 24px !important;
}

.payment-section {
    text-align: center;
    padding: 30px;
}

/* 支付宝头部 */
.alipay-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.alipay-logo {
    width: 120px;
    height: auto;
}

/* 支付金额 */
.payment-amount {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

/* 支付宝支付按钮 */
.alipay-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 48px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: #1677FF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alipay-pay-btn:hover {
    background: #0958D9;
}

.alipay-pay-btn:active {
    background: #074fb8;
}

/* 支付提示 */
.payment-tip {
    margin-top: 20px;
    color: #999;
    font-size: 14px;
}

/* 旧二维码样式（保留兼容） */
.qrcode-container {
    margin: 30px 0;
}

.qrcode-wrapper {
    display: inline-block;
    position: relative;
    padding: 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.qrcode-wrapper img {
    width: 200px;
    height: 200px;
}

.qrcode-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
}

.qrcode-tip {
    margin-top: 15px;
    color: #666;
}

.payment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #fff8e1;
    border-radius: 8px;
    margin-top: 20px;
}

.status-icon {
    font-size: 24px;
}

.status-text {
    font-weight: 500;
    color: #f57c00;
}

.help-card {
    padding: 20px;
}

.help-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.help-list {
    list-style: none;
    padding: 0;
}

.help-list li {
    padding: 10px 0;
    padding-left: 20px;
    position: relative;
    color: #666;
    font-size: 14px;
}

.help-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0073aa;
}

@media (max-width: 768px) {
    .pay-wrapper {
        grid-template-columns: 1fr;
    }

    .pay-sidebar {
        order: -1;
    }
}


/* ==================== 结算页面样式 ==================== */

.checkout-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.checkout-main .card {
    margin-bottom: 25px;
}

.checkout-main h2,
.checkout-main h3 {
    margin-bottom: 20px;
    color: #333;
}

.order-table {
    width: 100%;
}

.order-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.order-table td:first-child {
    color: #666;
    width: 120px;
}

.order-table td:last-child {
    text-align: right;
}

.price-row td {
    font-size: 18px;
}

.discount-text {
    color: #e74c3c;
}

.final-price-row td {
    font-size: 20px;
    font-weight: bold;
    border-top: 2px solid #333;
    border-bottom: none;
    padding-top: 15px;
}

.highlight-price {
    color: #e74c3c;
    font-size: 24px;
}

.coupon-card,
.affiliate-card,
.payment-card {
    padding: 25px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-group .form-control {
    flex: 1;
}

.coupon-applied {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
}

.coupon-code {
    font-weight: bold;
    font-size: 16px;
}

.coupon-discount {
    background: #4caf50;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
}

.coupon-success {
    color: #4caf50;
    margin-left: auto;
}

.coupon-error {
    color: #e74c3c;
    margin-top: 10px;
}

.affiliate-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.affiliate-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.option-text {
    font-weight: 500;
}

.balance-amount {
    margin-left: auto;
    color: #2196f3;
    font-weight: bold;
}

.deduction-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
    color: #4caf50;
    font-weight: bold;
}

.payment-methods {
    display: flex;
    gap: 15px;
}

.payment-method {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover,
.payment-method.active {
    border-color: #0073aa;
    background: #f0f7ff;
}

.payment-method input {
    display: none;
}

.method-icon {
    font-size: 24px;
}

.method-name {
    font-weight: 500;
}

.checkout-actions {
    text-align: center;
    padding: 30px;
}

.checkout-actions .agreement {
    display: block;
    margin-bottom: 20px;
    color: #666;
}

.checkout-actions .agreement a {
    color: #0073aa;
    text-decoration: underline;
}

.checkout-actions .button {
    width: 100%;
    max-width: 400px;
}


/* ==================== 登录/注册页面样式 ==================== */

.auth-wrapper {
    max-width: 450px;
    margin: 0 auto;
    padding: 40px 0;
}

.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    border-color: #0073aa;
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
}

.forgot-password {
    color: #0073aa;
    font-size: 14px;
}

.auth-form .button {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: #666;
}

.field-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    margin-bottom: 0;
}

.form-agreement {
    margin-bottom: 25px;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.agreement-checkbox input {
    margin-top: 3px;
}

.agreement-checkbox a {
    color: #0073aa;
}


/* 归档页面响应式 */
@media (max-width: 768px) {
    .archive-post-item {
        flex-direction: column;
    }

    .archive-post-item .post-thumbnail {
        width: 100%;
    }

    .archive-post-item .post-thumbnail img {
        height: 180px;
    }
}

/* ==================== 首页新增区块样式 ==================== */

/* 区块通用标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
}

/* 产品优势介绍区 */
.product-advantages-section {
    padding: 40px 0;
    margin-bottom: 10px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #fff;
}

.advantage-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.advantage-card p {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

/* 产品功能介绍区 */
.product-features-section {
    padding: 10px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.6;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 22px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .advantage-card {
        padding: 30px 25px;
        text-align: left;
    }

    .advantage-icon {
        margin: 0 auto 25px;
    }

    .product-advantages-section,
    .product-features-section {
        padding: 30px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        flex-direction: column;
        text-align: left;
    }

    .feature-icon {
        margin: 0 0 15px 0;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 9999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        right: 15px;
        bottom: 30px;
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* ==================== 联系表单样式 ==================== */

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.contact-form-card,
.contact-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-form-card h2,
.contact-info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #1a1a2e;
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.contact-form .required {
    color: #e74c3c;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-block {
    width: auto;
    min-width: 160px;
    padding: 14px 32px;
    font-size: 16px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form .btn-block:hover {
    background: #357abd;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90e2;
    flex-shrink: 0;
}

.contact-detail h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #333;
}

.contact-detail p {
    color: #666;
    font-size: 0.95rem;
}

/* ==================== 使用帮助页面样式 ==================== */

.help-page-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 40px 0;
}

.help-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.help-nav {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.help-nav h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #1a1a2e;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.help-nav ul {
    list-style: none;
}

.help-nav .toc-list {
    padding: 0;
}

.help-nav .toc-parent {
    margin-bottom: 4px;
}

.help-nav .toc-parent-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.help-nav .toc-parent-link:hover {
    background: #f5f7fa;
    color: #4a90e2;
}

.help-nav .toc-toggle {
    font-size: 0.75rem;
    color: #999;
    margin-left: 8px;
}

.help-nav .toc-children {
    padding: 4px 0 4px 16px;
}

.help-nav .toc-child {
    margin-bottom: 2px;
}

.help-nav .toc-child a {
    display: block;
    padding: 6px 12px;
    color: #777;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.85rem;
    line-height: 1.4;
}

.help-nav .toc-child a:hover {
    background: #f5f7fa;
    color: #4a90e2;
}

.help-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.help-content .faq-list {
    display: flex;
    flex-direction: column;
}

.help-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.help-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.help-section h2 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #4a90e2;
    display: inline-block;
}

.help-section h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 30px 0 16px;
}

.help-section h4 {
    font-size: 1.1rem;
    color: #444;
    margin: 24px 0 12px;
}

.help-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.help-section ul,
.help-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.help-section li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #555;
}

.help-section strong {
    color: #333;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
    overflow: hidden;
}

.faq-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-item-header:hover {
    background: #e8ecef;
}

.faq-item-header h4 {
    font-size: 15px;
    color: #333;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

.faq-toggle {
    font-size: 0.7rem;
    color: #999;
    margin-left: 8px;
    flex-shrink: 0;
}

.faq-item-content {
    display: none;
    padding: 0 16px 12px;
}

.faq-item.active .faq-item-content {
    display: block;
}

.faq-item-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.faq-item-content ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.faq-item-content li {
    margin-bottom: 6px;
    color: #555;
    line-height: 1.5;
    font-size: 14px;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 帮助页面响应式 */
@media (max-width: 768px) {
    .help-page-wrapper {
        grid-template-columns: 1fr;
    }
    
    .help-sidebar {
        position: static;
        order: 2;
    }
    
    .help-nav {
        padding: 16px;
    }
    
    .help-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .help-nav li {
        margin-bottom: 0;
    }
    
    .help-content {
        padding: 24px;
        order: 1;
    }
}

/* 联系表单响应式 */
@media (max-width: 768px) {
    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}