/* 海外云主机页面特有样式 */
:root {
    --navbar-height: 116px;
}

body {
    padding-top: 0 !important;
}

/* 导航栏样式 */
.navbar {
    top: 0;
}

/* 英雄区域样式 */
.country-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 0;
    padding-top: var(--navbar-height);
}

.country-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/map.png') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.country-hero-content {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.country-hero h1 {
    font-size: 4rem;
    margin-bottom: 2.5rem;
    color: white;
}

.country-hero h1 a {
    color: white;
    text-decoration: none;
}

.country-hero h1 a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.country-hero .hero-subtitle {
    font-size: 1.5rem;
    color: white;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.country-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 2rem;
}

.country-stat {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.country-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.country-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.country-stat .stat-label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .country-hero {
        padding: 4rem 0;
    }
    
    .country-hero h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .country-hero .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .country-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .country-stat {
        padding: 1.5rem;
    }
    
    .country-stat .stat-value {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .country-stat .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .country-stats {
        grid-template-columns: 1fr;
    }
}

/* 产品展示区域 */
.vps-showcase {
    padding: 6rem 0;
    background: var(--light-bg);
}

.vps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.vps-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.vps-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.country-flag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 20px;
    border-radius: 4px;
    box-shadow: var(--box-shadow);
}

.vps-content {
    padding: 1.5rem;
}

.vps-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    padding-right: 40px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vps-content h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.vps-content p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.vps-specs {
    list-style: none;
    margin-bottom: 1.5rem;
    display: grid;
    gap: 0.8rem;
}

.vps-specs li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.02);
}

.vps-specs i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.vps-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: 8px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.price-period {
    color: var(--text-color);
    opacity: 0.8;
}

.vps-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 600;
}

.vps-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.vps-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.vps-button:hover i {
    transform: translateX(3px);
}

/* 网络性能区域 */
.network-stats {
    padding: 4rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.network-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://suanlix.com/assets/images/network-bg.png') center/cover;
    opacity: 0.05;
    z-index: 1;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.network-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.network-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.network-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.network-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.network-label {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .vps-grid {
        grid-template-columns: 1fr;
    }
    
    .network-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vps-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .network-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .network-grid {
        grid-template-columns: 1fr;
    }
    
    .network-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* 数据中心部分样式 */
.datacenter-section {
    padding: 6rem 0;
    background: var(--white);
    text-align: center;
}

.datacenter-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.datacenter-section h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.datacenter-section h2 a:hover {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 3rem;
}

/* 会员切换开关样式 */
.member-switch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
}

.member-switch {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
}

.switch-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.switch-text {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
}

.switch-text span {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 20px;
}

.switch-text span.active {
    color: var(--primary-color);
    font-weight: 500;
}

.switch-text .non-member.active {
    background: rgba(37, 99, 235, 0.1);
}

.switch-text .member.active {
    background: rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .member-switch {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .switch-text {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* 套餐切换标签样式 */
.package-tabs {
    display: inline-flex;
    margin: 3rem auto;
    background: var(--light-bg);
    border-radius: 30px;
    padding: 0.4rem;
    position: relative;
}

.package-tab {
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    background: transparent;
    color: var(--text-color);
    position: relative;
    z-index: 2;
    min-width: 120px;
    text-align: center;
}

.package-tab.active {
    color: white;
}

.tab-slider {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    height: calc(100% - 0.8rem);
    background: var(--primary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
    z-index: 1;
}

/* 数据中心卡片样式 */
.datacenter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.datacenter-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.datacenter-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    position: relative;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    opacity: 0.9;
    font-size: 0.9rem;
}

.card-price {
    margin-top: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.price-period {
    font-size: 1rem;
    opacity: 0.9;
}

.card-content {
    padding: 2rem;
}

.specs-list {
    list-style: none;
    margin-bottom: 2rem;
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.specs-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .datacenter-section h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .package-tabs {
        width: auto;
        margin: 2rem auto;
    }
    
    .package-tab {
        padding: 0.5rem 1.2rem;
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    .datacenter-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* 闪连能力介绍部分 */
.flash-connect {
    background: linear-gradient(to bottom right, #1e293b, #0f172a);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.flash-connect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23ffffff" fill-opacity="0.03" width="100" height="100"/></svg>') repeat;
    opacity: 0.1;
}

.flash-connect-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.flash-connect-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flash-connect-text h2 a {
    color: inherit;
    text-decoration: none;
}

.feature-subtitle {
    color: #60a5fa;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.flash-connect-text p {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.flash-connect-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.flash-connect-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.flash-connect-features li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.flash-connect-features i {
    font-size: 1.2rem;
    color: #60a5fa;
}

.flash-connect-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-connect-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flash-connect-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    opacity: 0.1;
    filter: blur(40px);
    border-radius: 50%;
    z-index: -1;
}

.flash-connect-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.flash-stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.flash-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.flash-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.flash-stat-label {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .flash-connect-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .flash-connect {
        padding: 4rem 0;
    }
    
    .flash-connect-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .flash-connect-text {
        text-align: center;
    }
    
    .flash-connect-text h2 {
        font-size: 2rem;
    }
    
    .flash-connect-features {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .flash-connect-stats {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 3rem auto 0;
    }
}

/* 优势特点部分 */
.advantages-section {
    padding: 6rem 0;
    background: var(--white);
    text-align: center;
}

.advantages-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.advantage-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.advantage-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.advantage-card p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 1.5rem;
    }
    
    .advantage-card {
        padding: 1.5rem;
    }
    
    .advantage-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .advantage-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
}

/* 价格区域样式 */
.price-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}

.price {
    position: relative;
    padding: 10px 6px;
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.price:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: #fff;
}

.price.active {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.price-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 2px 0;
    line-height: 1.2;
}

.price-period {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.price-save {
    font-size: 10px;
    color: #10b981;
    margin-top: 4px;
    font-weight: 500;
    display: block;
}

.price.popular {
    border-color: var(--primary-color);
    background: #fff;
}

.price.popular::before {
    content: '推荐';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .price-list {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .price {
        padding: 15px;
    }
    
    .price-amount {
        font-size: 22px;
    }
}

/* 数据中心卡片样式补充 */
.datacenter-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.datacenter-header h3 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.subtitle {
    opacity: 0.9;
    font-size: 0.9rem;
}

.datacenter-content {
    padding: 1.2rem;
}

.datacenter-specs {
    margin-bottom: 1.2rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    padding: 0.4rem 0.8rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 6px;
}

.spec-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.datacenter-features {
    margin-bottom: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    color: var(--text-color);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.feature-item.disabled {
    opacity: 0.5;
}

.member-discount {
    color: var(--primary-color);
    font-weight: 500;
}

.datacenter-actions {
    padding: 0 1.2rem 1.2rem;
}

.action-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.action-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
} 