:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fb;
}

.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0; /* 减少padding使高度变窄 */
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto; /* 确保高度自适应 */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 40px; /* 设置最小高度 */
}

.logo {
    font-size: 1.4rem; /* 稍微减小字体大小 */
    font-weight: bold;
    margin: 5px 0; /* 调整边距 */
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 15px; /* 减少边距 */
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 8px 12px; /* 减小内边距 */
    border-radius: 50px;
    border: none;
    outline: none;
    font-size: 0.9rem; /* 减小字体大小 */
}
.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}



.main-content {
    padding: 2rem 0;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2rem;
    align-items: center;
}

.filter-btn {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.websites-grid {
    display: grid;
   grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.website-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.website-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 修改缩略图容器为相对定位 */
.card-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.website-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

/* 添加类别标签样式 - 左上角红色框 */
.card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff0000;
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 添加浏览次数样式 - 右上角眼睛图标+数字 */
.card-views {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.eye-icon {
    font-size: 0.9rem;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.card-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-actions {
    display: flex;
    justify-content: space-between;
}

.preview-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.preview-btn:hover {
    background-color: var(--secondary-color);
}

.add-website-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 500;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    flex-grow: 1;
    padding: 0;
}

.modal-iframe {
    width: 100%;
    height: 70vh;
    border: none;
}

footer {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 2rem 0;
    margin-top: 3rem;
}


/* 响应式设计 - 主要修改了头部区域在手机上的显示 */
@media (max-width: 768px) {
    header {
        padding: 0.3rem 0; /* 进一步减少顶部和底部的内边距 */
    }
    
    .header-content {
        flex-direction: row; /* 保持水平排列 */
        align-items: center;
        gap: 10px;
        min-height: 35px; /* 减少最小高度 */
    }
    
    .logo {
        font-size: 1.2rem; /* 进一步减小logo字体大小 */
        margin: 0; /* 移除边距 */
        flex-shrink: 0; /* 防止logo被压缩 */
    }
    
    .search-bar {
        margin: 0 8px; /* 减少边距 */
        flex: 1; /* 允许搜索栏伸缩 */
        min-width: 0; /* 允许搜索栏缩小 */
    }
    
    .search-bar input {
        padding: 6px 10px; /* 进一步减小内边距 */
        font-size: 0.85rem; /* 进一步减小字体大小 */
    }
    
    .btn {
        padding: 8px 12px; /* 减小按钮内边距 */
        font-size: 0.9rem; /* 减小按钮字体大小 */
        white-space: nowrap; /* 防止按钮文字换行 */
    }
    
    .websites-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-section {
        flex: 100%;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-wrap: nowrap; /* 防止元素换行 */
    }
    
    .logo {
        font-size: 1.1rem; /* 在超小屏幕上进一步减小logo */
    }
    
    .search-bar {
        margin: 0 5px; /* 进一步减少边距 */
    }
    
    .btn {
        padding: 6px 10px; /* 进一步减小按钮内边距 */
        font-size: 0.85rem; /* 进一步减小按钮字体大小 */
    }
    
    .websites-grid {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .preview-btn {
        width: 100%;
        text-align: center;
    }
}

/* 详情页面样式 */
.website-detail {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 2rem;
}

.detail-content {
    display: flex;
    gap: 40px; /* 增加间距 */
    height: calc(100vh - 200px); /* 使用全屏高度 */
}

.detail-info {
    flex: 1;
    max-width: 45%;
    overflow-y: auto; /* 添加滚动条以防内容过多 */
    padding-right: 20px;
}

.detail-preview {
    flex: 1;
    min-width: 400px;
    max-width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.detail-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.info-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 8px;
}

.info-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
}

.info-label {
    width: 100px;
    font-weight: 600;
    color: #555;
}

.info-value {
    flex: 1;
    word-break: break-all;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* 手机预览框架 - 移除灰色框 */
.mobile-frame {
    width: 360px;
    height: 700px;
    border: 12px solid #333;
    border-radius: 35px;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.mobile-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    z-index: 10;
}

.mobile-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: white;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .detail-content {
        flex-direction: column;
        height: auto;
    }
    
    .detail-info {
        max-width: 100%;
        padding-right: 0;
    }
    
    .detail-preview {
        min-width: 100%;
        max-width: 100%;
        height: 600px;
    }
    
    .mobile-frame {
        width: 320px;
        height: 600px;
    }
}

@media (max-width: 480px) {
    .website-detail {
        padding: 15px;
    }
    
    .detail-content {
        gap: 20px;
    }
    
    .mobile-frame {
        width: 280px;
        height: 500px;
        border-width: 8px;
        border-radius: 25px;
    }
    
    .mobile-frame::before {
        top: 10px;
        width: 40px;
        height: 6px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* 管理页面样式 */
.add-website-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-col {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.current-thumbnail {
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: var(--border-radius);
    display: inline-block;
}

.delete-btn {
    background-color: var(--danger-color);
    color: white;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-actions .preview-btn {
        width: 100%;
        text-align: center;
    }
}
/* 悬浮联系方式样式 - 默认显示 */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: block !important;
}

.contact-content {
    position: relative;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
    width: 180px;
    display: block !important;
}

.contact-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item span {
    color: var(--dark-color);
    word-break: break-all;
}

 .footer-record {
        font-size: 12px;
        color: #999;
        text-align: center;
        padding: 10px 0;
        line-height: 1.5;
    }
    .footer-record a {
        color: #999;
        text-decoration: none;
    }
    .footer-record a:hover {
        text-decoration: underline;
    }
    
/* 修复后的联系方式悬浮框样式 */
.floating-contact {
    position: fixed;
    right: 0;
    bottom: 100px;
    display: flex;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.contact-toggle {
    background-color: #4361ee;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 8px 0 0 8px;
    z-index: 10;
}

.contact-content {
    background-color: white;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 8px 8px 0;
    width: 200px; /* 修改宽度为200px */
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.contact-item {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    color: #4361ee;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.contact-item span {
    font-size: 0.9rem;
}

.contact-item span a {
    color: #6c63ff;
    text-decoration: underline;
}

/* 添加微信图片容器样式 */
.weixin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 8px;
}

/* 添加图片样式 */
.weixin-image {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-bottom: 8px;
}

/* 添加图片下方文字样式 */
.weixin-container p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    text-align: center;
}

/* 调整QQ项的上边距 */
.contact-item:nth-child(2) {
    margin-top: 10px;
}

/* 隐藏状态下的样式 */
.floating-contact.hidden {
    transform: translateX(calc(100% - 40px));
}

.floating-contact.hidden .contact-content {
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
}














/* ===== 价格方案页面样式 ===== */

/* ===== 价格方案页面样式 ===== */
/* 价格方案页面样式优化 */
.pricing-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.pricing-intro {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-intro h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.pricing-intro p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-cards-container {
    width: 100%;
    margin-bottom: 60px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border: 2px solid #059669;
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #059669;
    color: white;
    padding: 8px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.card-header {
    padding: 30px 30px 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 极速0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.card-header h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.price-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
    position: relative;
    z-index: 2;
}

.price-main {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

.price-note {
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.card-features {
    padding: 30px;
}

.feature-list {
    list-style: none;
}

.feature-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e9ecef;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 0.9rem;
}

.feature-text {
    flex: 1;
}

.card-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.renewal-price {
    font-weight: 600;
    color: #4f46e5;
}

/* 附加服务部分 */
.additional-services {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4f46e5;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-price {
    font-weight: 700;
    color: #4f46e5;
    font-size: 1.3rem;
}

/* 常见问题部分 */
.faq-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
}

.faq-question span:first-child {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #4f46e5;
    font-weight: 300;
}

.faq-answer {
    padding: 0 0 15px;
    display: none;
}

.faq-answer p {
    color: #7f8c8d;
    line-height: 1.7;
    margin: 0;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .pricing-container {
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pricing-intro h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-section {
        padding: 25px 20px;
    }
    
    .faq-question span:first-child {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .price-main {
        font-size: 2.2rem;
    }
    
    .card-header h3 {
        font-size: 1.3rem;
    }
    
    .card-header {
        padding: 20px 15px;
    }
    
    .card-features {
        padding: 20px 15px;
    }
    
    .pricing-container {
        padding: 20px 15px;
    }
}