/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://api.r10086.com/樱道随机图片api接口.php?图片系列=动漫综合1') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
}

/* 页眉样式 */
header {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(74, 105, 189, 0.9));
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主内容区域 */
main {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

/* 类别选择器 */
.category-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 140px;
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.category-btn.active {
    background: linear-gradient(145deg, rgba(74, 105, 189, 0.8), rgba(60, 90, 168, 0.8));
    color: white;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2), 
                inset -3px -3px 6px rgba(255, 255, 255, 0.1),
                0 8px 32px rgba(0, 0, 0, 0.3);
}

.category-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* 区域选择器 */
.zone-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 10px;
}

.zone-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
}

.zone-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.zone-btn.active {
    background: linear-gradient(145deg, rgba(74, 105, 189, 0.8), rgba(60, 90, 168, 0.8));
    color: white;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2), 
                inset -2px -2px 4px rgba(255, 255, 255, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 警告横幅 */
.warning-banner {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.warning-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.warning-header i {
    font-size: 1.8rem;
    margin-right: 15px;
    color: #fff;
}

.warning-header h3 {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
}

.warning-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.warning-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.warning-content li {
    margin-bottom: 5px;
}

/* 配置容器 */
.config-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.config-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.config-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4a69bd, #3c5aa8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.config-card:hover::before {
    transform: scaleX(1);
}

.config-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.config-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 18px;
    margin-bottom: 18px;
    text-align: center;
}

.config-title {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 8px;
    font-weight: 700;
}

.config-price {
    font-size: 1.8rem;
    color: #4a69bd;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.config-details {
    margin-bottom: 22px;
}

.config-detail {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.config-detail:last-child {
    border-bottom: none;
}

.config-detail span:first-child {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.config-detail span:last-child {
    color: white;
    font-weight: 600;
}

.config-action {
    text-align: center;
}

.select-btn {
    padding: 14px 32px;
    background: linear-gradient(145deg, #4a69bd, #3c5aa8);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.select-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.select-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 隐藏非活动内容 */
.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9));
    color: white;
    padding: 2.5rem 0;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 动态背景容器 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}   

.background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.background-slide.active {
    opacity: 1;
}

.background-slide:nth-child(1) {
    background-image: url('https://api.r10086.com/樱道随机图片api接口.php?图片系列=动漫综合1');
}

.background-slide:nth-child(2) {
    background-image: url('https://api.r10086.com/樱道随机图片api接口.php?图片系列=动漫综合2');
}

.background-slide:nth-child(3) {
    background-image: url('https://api.r10086.com/樱道随机图片api接口.php?图片系列=动漫综合3');
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 39, 0.85);
    z-index: -1;
}

/* 联系按钮容器 */
.contact-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(145deg, rgba(74, 105, 189, 0.9), rgba(60, 90, 168, 0.9));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.contact-btn:active {
    transform: translateY(0) scale(1);
}

/* 联系弹窗 */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(50px);
    transition: transform 0.4s ease;
}

.contact-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #4a69bd, #3c5aa8);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(74, 105, 189, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: #4a69bd;
    width: 30px;
    text-align: center;
}

.contact-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.copy-qq {
    background: linear-gradient(145deg, #4a69bd, #3c5aa8);
    color: white;
}

.action-btn.copy-wx {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    color: white;
}

.action-btn.add-qq {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    transform: translateY(0);
}

/* 移除配置卡片中的选择按钮 */
.config-action {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-button-container {
        bottom: 20px;
        right: 20px;
    }
    
    .contact-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .contact-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .contact-btn span {
        display: none;
    }
    
    .contact-btn {
        padding: 15px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
    }
    
    .contact-btn i {
        margin: 0;
        font-size: 1.5rem;
    }
}

/* 产品说明卡片样式 */
.config-description {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 90%;
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 105, 189, 0.5);
    border-radius: 12px;
    padding: 15px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.config-description::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(15, 32, 39, 0.95);
}

.config-card:hover .config-description {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-15px);
}

.description-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.description-content p {
    margin-bottom: 8px;
}

.description-content ul {
    padding-left: 20px;
    margin-bottom: 8px;
}

.description-content li {
    margin-bottom: 4px;
}

/* 说明提示标记 */
.description-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(74, 105, 189, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: help;
    transition: all 0.3s ease;
}

.description-indicator i {
    font-size: 12px;
    color: #4a69bd;
}

.config-card:hover .description-indicator {
    background: rgba(74, 105, 189, 0.5);
    transform: scale(1.1);
}
/* 产品说明卡片样式 - 修改为在卡片下方显示 */
.config-description {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 105, 189, 0.5);
    border-radius: 12px;
    padding: 15px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.config-description::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(15, 32, 39, 0.95);
}

.config-card:hover .config-description {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(15px);
}

/* 说明提示标记位置调整 */
.description-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(74, 105, 189, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: help;
    transition: all 0.3s ease;
}

/* 说明提示标记 */
.description-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(74, 105, 189, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: help;
    transition: all 0.3s ease;
}

.description-indicator i {
    font-size: 12px;
    color: #4a69bd;
}

.config-card:hover .description-indicator {
    background: rgba(74, 105, 189, 0.5);
    transform: scale(1.1);
}

/* 说明提示标记 */
.description-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(74, 105, 189, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: help;
    transition: all 0.3s ease;
}

.description-indicator i {
    font-size: 12px;
    color: #4a69bd;
}

.config-card:hover .description-indicator {
    background: rgba(74, 105, 189, 0.5);
    transform: scale(1.1);
}