/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* 主内容区样式 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 运营商选择区 */
.carrier-section {
    margin-bottom: 3rem;
}

.carrier-section h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.carrier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.carrier-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.carrier-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.carrier-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* 模板选择区 */
.template-section {
    margin-bottom: 3rem;
}

.template-section h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.template-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-10px);
}

.template-preview {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.template-indicator {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

/* 套餐展示区 */
.package-section {
    margin-bottom: 3rem;
}

.package-section h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.package-container {
    display: flex;
    justify-content: center;
}

.package-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.package-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.package-tag {
    font-size: 1.5rem;
}

.package-header h3 {
    font-size: 1.5rem;
    color: #333;
}

.package-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    margin-bottom: 2rem;
}

.package-price span {
    font-size: 1rem;
    font-weight: normal;
    color: #666;
}

.package-details {
    list-style: none;
    margin-bottom: 2rem;
}

.package-details li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.package-details li:last-child {
    border-bottom: none;
}

.highlight {
    color: #667eea;
    font-weight: bold;
    margin: 0 0.2rem;
}

.overage-fees {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.overage-fees h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.fee {
    color: #ff6b6b;
    font-weight: bold;
}

.select-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

/* 详情页样式 */
.detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.detail-header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.carrier-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.carrier-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.carrier-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.carrier-btn img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.detail-gallery {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.gallery-item {
    width: 100%;
    max-width: 600px;
}

.gallery-preview {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.3s ease;
}

.gallery-preview:hover {
    transform: perspective(1000px) rotateX(0deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.carrier-logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.carrier-logo-container img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.preview-content h3 {
    text-align: center;
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 2rem;
}

.package-specs {
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.spec-label {
    width: 80px;
    color: #666;
}

.spec-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-right: 1rem;
}

.spec-unit {
    font-size: 1rem;
    margin-left: 0.2rem;
}

.spec-desc {
    color: #999;
    width: 100%;
    margin-top: 0.5rem;
}

.overage-section {
    background: #fff5f5;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.overage-section h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.overage-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.overage-fee {
    color: #ff6b6b;
    font-weight: bold;
}

.package-price-display {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.price-unit {
    font-size: 1.5rem;
    font-weight: normal;
    color: #666;
}

.detail-templates {
    text-align: center;
}

.detail-templates h3 {
    color: white;
    margin-bottom: 1rem;
}

.template-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.template-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.template-btn:hover,
.template-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-3px);
}

/* 电销卡页面样式 */
.sales-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.sales-header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.sales-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.sales-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.sales-package {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    transform: perspective(1000px) translateY(0);
}

.sales-package:hover {
    transform: perspective(1000px) translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.sales-package-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carrier-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 0.5rem;
}

.sales-package-header h3 {
    flex: 1;
    font-size: 1.5rem;
}

.sales-tag {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.sales-package-body {
    padding: 1.5rem;
}

.sales-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    margin-bottom: 1.5rem;
}

.sales-price span {
    font-size: 1rem;
    font-weight: normal;
    color: #666;
}

.sales-specs {
    margin-bottom: 1.5rem;
}

.sales-spec {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.sales-spec:last-child {
    border-bottom: none;
}

.sales-spec-label {
    display: inline-block;
    width: 60px;
    color: #666;
}

.sales-spec-value {
    font-weight: bold;
    color: #667eea;
    margin-right: 1rem;
}

.sales-spec-desc {
    display: block;
    color: #999;
    margin-top: 0.3rem;
    margin-left: 60px;
}

.sales-overage {
    background: #fff5f5;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.sales-overage h4 {
    color: #ff6b6b;
    margin-bottom: 0.8rem;
}

.sales-features {
    background: #f0f4ff;
    padding: 1rem;
    border-radius: 10px;
}

.sales-features h4 {
    color: #667eea;
    margin-bottom: 0.8rem;
}

.sales-features ul {
    list-style: none;
}

.sales-features li {
    padding: 0.3rem 0;
}

.sales-package-footer {
    padding: 1.5rem;
    text-align: center;
}

.order-btn {
    padding: 1rem 3rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.sales-templates {
    text-align: center;
}

.sales-templates h3 {
    color: white;
    margin-bottom: 1rem;
}

/* 页脚样式 */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

/* 模板样式变体 */
.template2 .gallery-preview,
.template2 .sales-package {
    transform: perspective(1000px) rotateY(5deg);
}

.template2 .gallery-preview:hover,
.template2 .sales-package:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.template3 .gallery-preview,
.template3 .sales-package {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .main-content,
    .detail-content,
    .sales-content {
        padding: 1rem;
    }
    
    .carrier-grid,
    .template-grid,
    .sales-packages {
        grid-template-columns: 1fr;
    }
    
    .sales-packages {
        gap: 1.5rem;
    }
    
    .sales-package {
        max-width: 100%;
    }
    
    .template-options {
        flex-direction: column;
        align-items: center;
    }
    
    .template-btn {
        width: 200px;
    }
}

/* 3D动画效果 */
@keyframes float {
    0% { transform: perspective(1000px) translateY(0px) rotateX(5deg); }
    50% { transform: perspective(1000px) translateY(-10px) rotateX(5deg); }
    100% { transform: perspective(1000px) translateY(0px) rotateX(5deg); }
}

.template1 .gallery-preview,
.template1 .sales-package {
    animation: float 3s ease-in-out infinite;
}

@keyframes float2 {
    0% { transform: perspective(1000px) translateY(0px) rotateY(5deg); }
    50% { transform: perspective(1000px) translateY(-10px) rotateY(5deg); }
    100% { transform: perspective(1000px) translateY(0px) rotateY(5deg); }
}

.template2 .gallery-preview,
.template2 .sales-package {
    animation: float2 3s ease-in-out infinite;
}