:root {
    --primary-color: #2196F3;
    --secondary-color: #FFC107;
    --background-color: #1a1a1a;
    --card-background: #2d2d2d;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --gradient-start: #1a1a1a;
    --gradient-end: #2d2d2d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* 壁纸类型选择标签 */
.wallpaper-type-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.tab-btn {
    background: linear-gradient(145deg, #323232, #2a2a2a);
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgb(39, 60, 61), rgb(67, 44, 68));
    border-color: rgba(255,255,255,0.2);
}

/* 壁纸展示区域 */
.wallpaper-showcase {
    margin: 30px 0;
    padding: 20px;
}

.wallpaper-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.wallpaper-grid.active {
    display: grid;
}

/* 壁纸卡片样式 */
.wallpaper-card {
    background: linear-gradient(145deg, #323232, #2a2a2a);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

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

.wallpaper-card.selected {
    background: linear-gradient(135deg, rgb(39, 60, 61), rgb(67, 44, 68));
    border-color: rgba(255,255,255,0.2);
}

.wallpaper-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.wallpaper-image:hover {
    opacity: 0.8;
}

.wallpaper-info {
    padding: 15px;
}

.wallpaper-name {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.wallpaper-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wallpaper-price {
    display: none;
}

/* 底部按钮组 */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.prev-btn, .confirm-btn {
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn {
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.2);
}

.prev-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.confirm-btn {
    background: linear-gradient(145deg, #f1c40f, #f39c12);
    color: #2d2d2d;
    border: none;
    font-weight: bold;
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(243,156,18,0.4);
}

/* 子类型标签 */
.sub-type-tabs {
    display: none;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.sub-type-tabs.active {
    display: flex;
}

/* 修改展示区域的样式 */
.showcase-container > div {
    display: none;
    margin-top: 30px;
}

.showcase-container > div.active {
    display: block;
}

/* 移除之前重复的服务展示区域 */
.container > .service-showcase {
    display: none;
}

/* 预览模态框 */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.preview-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 90%;
    height: 80vh;
}

.preview-side {
    width: 120px;
    height: 180px;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.preview-side:hover {
    opacity: 0.8;
}

.preview-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.preview-main {
    position: relative;
    max-width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-main img {
    max-width: 100%;
    max-height: calc(100% - 60px);
    object-fit: contain;
    border-radius: 15px;
}

.preview-controls {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.preview-controls button {
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-controls button:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

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

/* 移动端适配 */
@media (max-width: 768px) {
    .wallpaper-type-tabs {
        flex-direction: row;
        padding: 0 15px;
    }

    .tab-btn {
        padding: 12px 25px;
        font-size: 1rem;
        flex: 1;
    }

    .wallpaper-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .wallpaper-image {
        height: 120px;
    }

    .btn-group {
        flex-direction: column;
        padding: 0 20px;
    }

    .prev-btn, .confirm-btn {
        width: 100%;
        padding: 15px;
    }

    .modal-content {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .preview-side {
        display: none;
    }

    .preview-main {
        width: 100%;
        max-width: 100%;
    }

    .close-modal {
        top: 10px;
        right: 10px;
    }
}

/* 在现有样式中添加 */
.preview-side, .preview-controls button {
    transition: opacity 0.3s ease, display 0.3s ease;
}

.preview-controls button[style*="display: none"] {
    opacity: 0;
}

.preview-side[style*="display: none"] {
    opacity: 0;
}

/* 服务项目展示样式 */
.service-showcase {
    margin: 40px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.service-card {
    min-height: 320px;
    background: linear-gradient(145deg, #323232, #2a2a2a);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.service-features li {
    color: var(--text-color);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
}

.service-features li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.section-title {
    display: none;  /* 移除多余的标题 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .service-card {
        min-height: auto;
        padding: 20px;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }
}

/* 添加加载状态样式 */
.preview-main img.loading {
    opacity: 0.5;
}

/* 添加加载动画 */
.preview-main {
    position: relative;
}

.preview-main img.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 优化缩略图显示 */
.wallpaper-image {
    transition: opacity 0.3s ease;
}

.wallpaper-card:hover .wallpaper-image {
    opacity: 0.8;
} 