/* 重置和基础样式保持不变 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    height: 100vh;
}

a {
    text-decoration: none;
    color: rgb(106, 115, 139);
}

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

/* 头部样式更新 */
.header {
    background-color: #fff;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    height: 60px;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 24px;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

.logo .nav {
    margin-left: 30px;
}

.logo .nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.logo .nav a {
    text-decoration: none;
    color: #6A738B;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.logo .nav a:hover {
    color: #E91E63;
}

.logo .nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #E91E63;
    transition: width 0.3s;
}

.logo .nav a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.more-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.more-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.payment-modal.active {
    display: flex;
}

.payment-container {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    width: 800px;
    position: relative;
    display: flex;
}

.payment-left {
    width: 280px;
    padding: 24px;
    background: #FFF7F7;
    border-radius: 12px 0 0 12px;
}

.payment-right {
    flex: 1;
    padding: 24px;
    border-radius: 0 12px 12px 0;
}

.vip-benefits {
    margin-top: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: #666;
    font-size: 14px;
}

.benefit-item i {
    color: #FF6B6B;
    margin-right: 8px;
}

.package-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.package-tab {
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #E0E0E0;
    transition: all 0.3s;
}

.package-tab.active {
    background: #FF6B6B;
    color: white;
    border-color: #FF6B6B;
}

.package-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.package-option {
    flex: 1 1 calc(50% - 6px);
    padding: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.package-option.active {
    border-color: #FF6B6B;
    background: #FFF7F7;
}

.package-price {
    font-size: 24px;
    font-weight: bold;
    color: #FF6B6B;
    margin-bottom: 4px;
}

.package-name {
    font-size: 14px;
    color: #666;
}

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

.payment-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.payment-close {
    cursor: pointer;
    font-size: 20px;
    color: #999;
}

.payment-amount {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.payment-method:hover {
    border-color: #1890ff;
    background-color: #f0f9ff;
}

.payment-method.active {
    border-color: #1890ff;
    background-color: #e6f7ff;
}

.payment-method-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.payment-method-name {
    flex-grow: 1;
    font-size: 16px;
    color: #333;
}

.payment-qrcode {
    text-align: center;
    margin: 20px 0;
}

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

.payment-tips {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 12px;
}

/* 响应式设计补充 */
@media (max-width: 1024px) {
    .nav ul {
        gap: 20px;
    }

    .nav a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 16px;
    }

    .nav {
        display: none;
        /* 在移动端可以改为汉堡菜单 */
    }

    .header-right {
        gap: 8px;
    }
}

/* 主要内容区域 */
.main {
    margin-top: 80px;
}

.hero {
    background-color: #f8f9fa;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 18px;
    /** 字体加粗*/
    font-weight: bold;
    cursor: pointer;
    margin-top: 30px;

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

.feature-content .cta-button {
    margin-top: 15px;
    display: inline-block;
}

/* 特性展示区域 */
.features {
    padding: 80px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 100px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    max-width: 50%;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-content {
    flex: 1;
}

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

.feature-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* 响应式设计补充 */
@media (max-width: 768px) {

    .feature-item,
    .feature-item.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .feature-image {
        max-width: 100%;
    }

    .feature-content {
        text-align: center;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* 底部样式 */
.footer {
    background-color: #f8f9fa;
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-left {
    width: 40%;
    padding-right: 40px;
}

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

.footer-left p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.footer-center {
    width: 15%;
}

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

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-right {
    width: 25%;
    text-align: center;
}

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

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-img {
    width: 150px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.qrcode-container p {
    font-size: 14px;
    color: #666;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    text-align: center;
}

.copyright {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.icp {
    margin-left: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {

    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        margin-bottom: 30px;
        padding-right: 0;
    }

    .footer-right {
        text-align: left;
    }

    .qrcode-container {
        align-items: flex-start;
    }
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #999;
    font-size: 12px;
}

.icp {
    color: #999;
}

.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }

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

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

/* 用户故事区域 */
.user-stories {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.user-stories h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.story-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-tag {
    position: absolute;
    top: 10px;
    right: 20px;
    background: #4A90E2;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.story-content blockquote {
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.story-content blockquote p {
    position: relative;
    padding-left: 20px;
}

.story-content blockquote p::before {
    content: '"';
    font-size: 40px;
    color: #4A90E2;
    position: absolute;
    left: -10px;
    top: -10px;
}

.story-author {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.story-author h4 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.story-author p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.rating {
    margin-top: 10px;
}

.star {
    color: #FFD700;
    font-size: 18px;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .story-card {
        margin: 0 20px;
    }
}

/* FAQ部分样式 */
.faq-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.faq-toggle {
    font-size: 24px;
    color: #666;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* 登录按钮和二维码样式 */
.login-container {
    position: relative;
}

.login-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #333;
}

.qrcode-modal {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
}


.qrcode-container {
    text-align: center;
}

.qrcode-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

#login_container {
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.qrcode-tips {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
}

.qrcode-modal.active {
    display: block;
}

/* 登录弹窗样式 */
.login-modal {
    display: none;
    /* 默认隐藏 */
    position: absolute;
    /* 固定定位 */
    z-index: 1001;
    /* 确保在最上层 */
    right: 0;
    top: 100%;
    margin-top: 10px;
    width: 400px;
    height: 400px;
    justify-content: center;
    align-items: center;

}

.login-modal.active {
    display: flex;
    /* 显示弹窗 */
}

.login-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.login-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.login-content input[type="text"],
.login-content input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.login-content button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.login-content button:hover {
    background-color: #0056b3;
}

.user-info {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
    color: #333;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-item {
    padding: 8px 16px;
    cursor: pointer;
    width: 200px;
    color:#000;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.vip-tag-box {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    background: linear-gradient(91.84deg, #f3f3f3 1.94%, #dde1eb 99.67%);
    border-radius: 8px;
    height: 40px;
    box-sizing: border-box;

    .quota-icon {
        width: 14px;
        height: 14px;
    }

    .quota-text {
        margin-left: 4px;
        margin-right: 8px;
        font-weight: 700;
        color: var(--ykt-theme-color-n1-2);
        font-size: 14px;
        line-height: 1;
    }

    .text-btn {
        padding: 0;
        color: var(--ykt-theme-color-n1-2);
        font-size: 12px;
        text-decoration: underline;
        cursor: pointer;
        border: none;
    }

    .dividing-line {
        margin: 0 8px;
        width: 1px;
        height: 12px;
        background: #6d3e21;
        opacity: .3;
    }

    .vip-btn {
        display: flex;
        align-items: center;
        padding: 0 8px;
        height: 28px;
        background: #212121;
        border-radius: 6px;
        color: #ffe4af;
        cursor: pointer;
        font-size: 12px;
    }

}

/* 视频人物卡通化功能点样式 */
.feature-points {
    margin-top: 20px;
}

.feature-point {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.point-icon {
    font-size: 18px;
    margin-right: 10px;
    color: #2196F3;
}

.point-text {
    flex: 1;
    line-height: 1.5;
}


.red {
    color: red;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    left: 0;
    border-radius: 4px;
    overflow: hidden;

    a {
        color: #333;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        transition: background-color 0.3s ease;
        margin-left: 10px;
    }
}

.header-kefu {
    margin-left: 10px;
}

.header-kefu-qrcode {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 999;
    top: 100%;
    border-radius: 4px;
    overflow: hidden;

    img {
        width: 200px;
        margin-bottom: 10px;
        border-radius: 4px;
    }
}

.header-kefu:hover .header-kefu-qrcode {
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}