/* 引入 Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
:root {
    --primary-green: #2ecc71;
    --dark-green: #27ae60;
    --forest-green: #1e8449;
    --light-green: #d5f5e3;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f9fafb;
    --white: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-green);
    font-size: 1.8rem;
    display: inline;
}

.logo span {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e8449 0%, #2ecc71 100%);
    color: white;
    text-align: center;
    padding: 8rem 2rem 6rem;
    margin-top: 4rem;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: white;
    color: var(--primary-green);
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-green);
}

/* Products Section */
.products, .pricing {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.product-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card, .pricing-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}

.product-card:hover, .pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border: 2px solid var(--primary-green);
    transform: scale(1.05);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-header h4 {
    font-size: 1.3rem;
}

.badge {
    background: var(--light-green);
    color: var(--forest-green);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.7rem;
}

.badge.free {
    background: #ffd93d;
    color: #8b6b00;
}

.product-region {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-specs {
    margin: 1rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: left;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
}

.price-free {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--forest-green);
}

/* Auth Forms */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e8449, #2ecc71);
    padding: 2rem;
}

.auth-box {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.btn-block {
    width: 100%;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link a {
    color: var(--primary-green);
    text-decoration: none;
}

/* Dashboard */
.user-nav {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.dashboard {
    padding: 3rem 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.server-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.server-card.expired {
    opacity: 0.7;
    border-left: 4px solid #e74c3c;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status {
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    background: var(--light-green);
    color: var(--forest-green);
}

.status.running {
    background: var(--light-green);
    color: var(--forest-green);
}

.server-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.server-info code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.server-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border-radius: 5px;
    text-decoration: none;
    background: var(--light-green);
    color: var(--forest-green);
    border: none;
    cursor: pointer;
}

.btn-warning {
    background: #ffd93d;
    color: #8b6b00;
}

.btn-success {
    background: var(--primary-green);
    color: white;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--light-green);
    color: var(--forest-green);
    border-left: 4px solid var(--primary-green);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.empty-state {
    text-align: center;
    padding: 4rem;
    background: white;
    border-radius: 15px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .servers-grid {
        grid-template-columns: 1fr;
    }
}
/* 产品卡片增强样式 */
.product-card .btn-outline {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.product-card .btn-outline:hover {
    background: var(--primary-green);
    color: white;
    transform: translateX(5px);
}

.region-icon {
    margin-right: 5px;
}

.spec-item {
    padding: 0.3rem 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.price-duration {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: 5px;
}

/* 特色功能区域 */
.features {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 价格卡片增强 */
.pricing-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-green);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.2);
}

.hot-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pricing-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-green);
    margin: 1rem 0;
}

.price-tag span {
    font-size: 1rem;
    color: var(--text-light);
}

.price-period {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pricing-card.featured {
        transform: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* 错误提示 */
.error {
    text-align: center;
    color: #e74c3c;
    padding: 2rem;
}
/* ============================================
   为什么选择我们 - 特色功能区域
   ============================================ */

.features {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8faf8 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.features .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.features .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.features .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    margin: 1rem auto 0;
    border-radius: 3px;
}

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

.feature-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(46, 204, 113, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 3rem 1.5rem;
    }
    
    .features .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
    }
}

/* 可选：添加加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }