/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #1f2937;
    --light-bg: #f9fafb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 2rem;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.feature-icon {
    font-size: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* 节点信息 */
.nodes-info {
    padding: 4rem 2rem;
    background: var(--light-bg);
}

.nodes-info h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.node-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.node-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.node-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.node-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.node-card p {
    color: var(--text-light);
}

/* 定价区域 */
.pricing-section {
    padding: 5rem 2rem;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.price-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.price-card.popular {
    border: 3px solid var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-light);
}

.amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0.3rem;
}

.period {
    font-size: 1.2rem;
    color: var(--text-light);
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.badge-trial {
    background: #e0e7ff;
    color: #4f46e5;
}

.badge-basic {
    background: #dbeafe;
    color: #2563eb;
}

.badge-standard {
    background: #fef3c7;
    color: #d97706;
}

.badge-pro {
    background: #fce7f3;
    color: #db2777;
}

.badge-svip {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #92400e;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li.highlight {
    color: var(--success-color);
    font-weight: bold;
}

.buy-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.yearly-title {
    text-align: center;
    font-size: 2rem;
    margin: 4rem 0 2rem;
    color: var(--text-dark);
}

.price-card.svip {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

/* 单节点区域 */
.single-node-section {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.single-node-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.single-node-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
}

.single-node-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.single-node-card.special {
    border: 2px solid var(--warning-color);
}

.single-node-card.recommended {
    border: 3px solid var(--success-color);
}

.single-node-card.value {
    border: 2px solid var(--primary-color);
}

.special-tag, .recommend-tag, .value-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    color: white;
}

.special-tag {
    background: var(--warning-color);
}

.recommend-tag {
    background: var(--success-color);
}

.value-tag {
    background: var(--primary-color);
}

.node-header {
    text-align: center;
    margin-bottom: 2rem;
}

.node-flag-large {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.node-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.node-packages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: var(--transition);
}

.package-item:hover {
    background: #e0e7ff;
}

.package-info {
    display: flex;
    flex-direction: column;
}

.package-traffic {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.package-period {
    font-size: 0.9rem;
    color: var(--text-light);
}

.package-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0 1rem;
}

.buy-btn-small {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.buy-btn-small:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* 服务优势 */
.features-section {
    padding: 5rem 2rem;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.feature-icon-large {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 使用场景 */
.use-cases-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.use-cases-section .section-title {
    color: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.use-case-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.use-case-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.use-case-card p {
    opacity: 0.9;
}

/* 联系我们 */
.contact-section {
    padding: 5rem 2rem;
    background: white;
    text-align: center;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

/* 页脚 */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-note {
    margin-top: 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 0% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close:hover {
    color: var(--danger-color);
}

.modal-content h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.modal-body {
    text-align: center;
}

.selected-plan, .selected-price {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.selected-price strong {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.contact-info {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
}

.qr-container {
    margin-top: 1rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.qr-image {
    max-width: 100%;
    width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0088cc, #00aced);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.telegram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.5);
}

.telegram-icon {
    font-size: 1.5rem;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-features {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .feature-item {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .single-node-grid {
        grid-template-columns: 1fr;
    }
    
    .single-node-card {
        padding: 1.5rem;
    }
    
    .node-flag-large {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }
    
    .node-header h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .special-tag, .recommend-tag, .value-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
        right: 10px;
        top: -10px;
    }
    
    .package-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .package-info {
        text-align: center;
    }
    
    .package-traffic {
        font-size: 1.5rem;
    }
    
    .package-period {
        font-size: 0.85rem;
    }
    
    .package-price {
        font-size: 1.8rem;
        margin: 0;
        text-align: center;
    }
    
    .buy-btn-small {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .nodes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .node-card {
        padding: 1.5rem 1rem;
    }
    
    .node-flag {
        font-size: 2.5rem;
    }
    
    .node-card h3 {
        font-size: 1.1rem;
    }
    
    .node-card p {
        font-size: 0.9rem;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .qr-image {
        width: 200px;
    }
    
    .telegram-link {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .qr-container {
        padding: 1.5rem;
    }
}

/* 更小屏幕优化 (手机竖屏) */
@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .single-node-section {
        padding: 3rem 1rem;
    }
    
    .single-node-card {
        padding: 1.2rem;
    }
    
    .node-flag-large {
        font-size: 2.5rem;
    }
    
    .node-header h3 {
        font-size: 1.2rem;
    }
    
    .package-item {
        padding: 0.8rem;
    }
    
    .package-traffic {
        font-size: 1.3rem;
    }
    
    .package-price {
        font-size: 1.5rem;
    }
    
    .pricing-section {
        padding: 3rem 1rem;
    }
    
    .price-card {
        padding: 1.5rem;
    }
    
    .features-section {
        padding: 3rem 1rem;
    }
    
    .nodes-info {
        padding: 3rem 1rem;
    }
    
    .nodes-grid {
        grid-template-columns: 1fr;
    }
    
    .node-card {
        padding: 1.5rem;
    }
    
    .qr-image {
        width: 180px;
    }
    
    .telegram-link {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}