/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00a8e8;
    --secondary-color: #0077b6;
    --accent-color: #48cae4;
    --dark-color: #023e8a;
    --light-color: #caf0f8;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== 容器 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

[class*="col-"] {
    padding: 0 15px;
}

/* ==================== 顶部导航栏 ==================== */
.atf-header-area {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.atf-top-header {
    background: var(--dark-color);
    padding: 10px 0;
    color: var(--white);
}

.atf-top-header-in {
    display: flex;
    align-items: center;
}

.atf-top-header-list {
    display: flex;
    gap: 30px;
}

.atf-top-header-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.atf-top-header-list a {
    color: var(--white);
}

.atf-header-top-social ul {
    display: flex;
    gap: 20px;
}

.atf-header-top-social a {
    color: var(--white);
    font-size: 14px;
}

.atf-site-header {
    padding: 15px 0;
    background: var(--white);
}

.atf-site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.atf-site-branding img {
    width: 228px;
    height: auto;
}

.atf-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.atf-nav-list {
    display: flex;
    gap: 5px;
}

.atf-nav-item {
    position: relative;
}

.atf-nav-link {
    display: block;
    padding: 15px 20px;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.atf-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.atf-nav-link:hover::after,
.atf-nav-link.active::after {
    width: 80%;
}

.atf-nav-link:hover,
.atf-nav-link.active {
    color: var(--primary-color);
}

.atf-header-btn-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.atf-themes-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.atf-themes-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.atf-themes-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.atf-themes-btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ==================== 英雄区域 ==================== */
.atf-hero-area {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.atf-hero-area::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.atf-hero-content {
    position: relative;
    z-index: 2;
}

.atf-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.atf-hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.atf-hero-btn {
    margin-top: 20px;
}

/* ==================== 区域通用样式 ==================== */
.atf-section-padding {
    padding: 80px 0;
}

.bg-light {
    background: var(--gray-light);
}

.atf-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.atf-section-title .sub_title {
    display: inline-block;
    padding: 8px 20px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.atf-section-title .title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
}

/* ==================== 服务卡片 ==================== */
.atf-single-service {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.atf-single-service:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.atf-service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

.atf-single-service:hover .atf-service-icon {
    background: var(--primary-color);
    color: var(--white);
}

.atf-service-content h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.atf-service-content h4 a {
    color: var(--text-color);
}

.atf-service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.atf-service-content .read {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.atf-service-content .read:hover {
    color: var(--secondary-color);
}

/* ==================== 视频卡片 ==================== */
.atf-video-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.atf-video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.atf-video-thumb {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.atf-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.atf-video-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.atf-video-content {
    padding: 25px;
}

.atf-video-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.atf-video-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.atf-video-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

/* ==================== 统计计数器 ==================== */
.atf-single-counter {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.atf-single-counter:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.atf-counter-icon {
    width: 70px;
    height: 70px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary-color);
}

.atf-counter-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.atf-counter-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* ==================== 登录/注册 ==================== */
.atf-auth-area {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--gray-light);
}

.atf-auth-box {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    border-radius: 10px;
    padding: 50px 40px;
    box-shadow: var(--shadow);
}

.atf-auth-title {
    text-align: center;
    margin-bottom: 40px;
}

.atf-auth-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.atf-auth-title p {
    font-size: 14px;
    color: var(--text-light);
}

.atf-form-group {
    margin-bottom: 25px;
}

.atf-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.atf-form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
}

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

.atf-form-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.atf-form-error.show {
    display: block;
}

.atf-btn-block {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.atf-auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.atf-auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==================== 充值中心 ==================== */
.atf-recharge-info {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.atf-recharge-balance {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.atf-recharge-balance .balance-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.atf-recharge-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.atf-recharge-option {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.atf-recharge-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.atf-recharge-option.selected {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.atf-recharge-option .amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
}

.atf-recharge-option .bonus {
    font-size: 14px;
    color: #dc3545;
    font-weight: 600;
    margin-top: 10px;
}

.atf-recharge-submit {
    margin-top: 30px;
    text-align: center;
}

/* ==================== 未登录提示 ==================== */
.atf-not-logged-in {
    text-align: center;
    padding: 100px 20px;
}

.atf-not-logged-in .icon {
    font-size: 80px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.atf-not-logged-in h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.atf-not-logged-in p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ==================== 模态框 ==================== */
.atf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.atf-modal.show {
    display: flex;
}

.atf-modal-content {
    background: var(--white);
    border-radius: 10px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

.atf-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.atf-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--gray-light);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.atf-modal-close:hover {
    background: var(--border-color);
}

.atf-modal-body {
    text-align: center;
    padding: 20px 0;
}

.atf-modal-body .icon {
    font-size: 60px;
    margin-bottom: 20px;
}

/* ==================== 静态页面 ==================== */
.atf-static-page {
    padding: 60px 20px;
}

.atf-static-content {
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.atf-static-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.atf-static-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.atf-static-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 12px;
    color: var(--text-color);
}

.atf-static-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.atf-static-content ul,
.atf-static-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.atf-static-content li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* ==================== Toast 提示 ==================== */
.atf-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--white);
    border-radius: 5px;
    box-shadow: var(--shadow);
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    animation: toastSlideIn 0.3s ease;
    max-width: 300px;
}

.atf-toast-success {
    border-left: 4px solid #28a745;
    color: #155724;
}

.atf-toast-error {
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.atf-toast-info {
    border-left: 4px solid var(--primary-color);
    color: #0c5460;
}

.atf-toast-hide {
    animation: toastSlideOut 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ==================== 页脚 ==================== */
.atf-footer-area {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.atf-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.atf-footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
}

.atf-footer-col p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.8;
}

.atf-footer-links li {
    margin-bottom: 12px;
}

.atf-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition);
}

.atf-footer-links a:hover {
    color: var(--white);
    padding-left: 10px;
}

.atf-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.atf-footer-contact li span {
    margin-top: 3px;
}

.atf-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.atf-footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.atf-footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.atf-footer-bottom a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .atf-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .atf-nav {
        display: none;
    }
    
    .atf-hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .atf-top-header {
        display: none;
    }
    
    .atf-site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .atf-site-branding img {
        width: 180px;
    }
    
    .atf-hero-area {
        padding: 80px 0;
    }
    
    .atf-hero-area::before {
        display: none;
    }
    
    .atf-hero-content h1 {
        font-size: 28px;
    }
    
    .atf-hero-content p {
        font-size: 16px;
    }
    
    .atf-footer-grid {
        grid-template-columns: 1fr;
    }
    
    .atf-recharge-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .atf-hero-area {
        padding: 60px 0;
    }
    
    .atf-hero-content h1 {
        font-size: 24px;
    }
    
    .atf-auth-box {
        padding: 40px 25px;
    }
    
    .atf-auth-title h2 {
        font-size: 26px;
    }
    
    .atf-static-content {
        padding: 30px 20px;
    }
    
    .atf-static-content h1 {
        font-size: 24px;
    }
    
    .atf-recharge-options {
        grid-template-columns: 1fr;
    }
}