/* ========================================
   AI漫剧平台 - 公共样式文件
   ======================================== */

/* CSS 变量 - 配色方案 */
:root {
    /* 品牌色 - 渐变辅助色 */
    --primary-color: #00d0ff;
    --primary-hover: #00e5ff;
    --primary-light: #00ffc8;
    --primary-dark: #00b8d9;
    --primary-gradient: linear-gradient(135deg, #00d0ff, #00ffc8);

    /* 背景色 */
    --bg-dark: #121212;
    --bg-darker: #0A0A0A;
    --bg-card: #1A1A1A;
    --bg-card-hover: #222222;

    /* 文字颜色 */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #6B6B6B;

    /* 辅助色 */
    --accent-green: #00D68F;
    --accent-blue: #2F80ED;
    --accent-purple: #9B51E0;

    /* 边框颜色 */
    --border-light: #333333;
    --border-primary: rgba(0, 208, 255, 0.3);
    --border-dashed: #444444;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 24px rgba(0, 208, 255, 0.4);

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

/* 移除所有元素focus时的默认outline，改用自定义样式 */
*:focus,
*:focus-visible {
    outline: none;
}

/* 移除链接的tap高亮（移动端） */
a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* 移除SVG的默认边框 */
svg {
    border: none;
    outline: none;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 通用容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fastaigc_container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-decoration: none;
    gap: 8px;
}

.fastaigc_btn-primary {
    background: linear-gradient(135deg, #00d0ff, #00ffc8);
    color: #121212;
    box-shadow: var(--shadow-glow);
}

.fastaigc_btn-primary:hover {
    background: linear-gradient(135deg, #00e5ff, #00ffc8);
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(0, 208, 255, 0.6);
}

.fastaigc_btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.fastaigc_btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-white {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 8px 20px;
    font-size: 14px;
}

.btn-white:hover {
    background: #E0E0E0;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 48px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* 卡片样式 */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* 标题样式 */
.fastaigc_section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.fastaigc_section-subtitle {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-secondary);
}

.highlight {
    color: var(--primary-color);
}

/* 段落样式 */
.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Flexbox 工具类 */
.flex {
    display: flex;
}

.fastaigc_flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fastaigc_flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fastaigc_flex-wrap {
    flex-wrap: wrap;
}

.fastaigc_flex-column {
    flex-direction: column;
}

/* Grid 工具类 */
.grid {
    display: grid;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 间距工具类 */
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.pt-0 { padding-top: 0; }
.pt-16 { padding-top: 16px; }
.pt-24 { padding-top: 24px; }
.pt-32 { padding-top: 32px; }
.pt-48 { padding-top: 48px; }
.pt-64 { padding-top: 64px; }

.pb-0 { padding-bottom: 0; }
.pb-16 { padding-bottom: 16px; }
.pb-24 { padding-bottom: 24px; }
.pb-32 { padding-bottom: 32px; }
.pb-48 { padding-bottom: 48px; }
.pb-64 { padding-bottom: 64px; }

/* Section 通用样式 */
.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--bg-dark);
}

.section-gradient {
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 64px 0;
    }

    .fastaigc_section-title {
        font-size: 40px;
    }

    .fastaigc_section-subtitle {
        font-size: 20px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    .section {
        padding: 48px 0;
    }

    .fastaigc_section-title {
        font-size: 32px;
    }

    .fastaigc_section-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .card {
        padding: 24px;
    }

    .btn-lg {
        padding: 16px 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .fastaigc_section-title {
        font-size: 28px;
    }

    .fastaigc_section-subtitle {
        font-size: 16px;
    }

    .btn-sm {
        padding: 6px 16px;
        font-size: 12px;
    }

    .btn-white {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

/* ========================================
   页脚样式
   ======================================== */

/* 页脚 */
.fastaigc_footer {
    background: var(--bg-darker);
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

.fastaigc_footer .container {
    max-width: 100%;
}

.fastaigc_footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fastaigc_footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.fastaigc_footer-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.fastaigc_footer-copyright {
    font-size: 14px;
    color: var(--text-muted);
}

.fastaigc_footer-info {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.fastaigc_footer-divider {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 8px;
}

.fastaigc_footer-icp {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.fastaigc_footer-icp:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* 页脚响应式适配 */
@media (max-width: 768px) {
    .fastaigc_footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .fastaigc_footer-left,
    .fastaigc_footer-right {
        width: 100%;
        justify-content: center;
    }
    
    .fastaigc_footer-info {
        justify-content: center;
    }
}

/* ========================================
   Layer弹窗样式修复
   修复layer弹窗文字颜色与全局样式冲突的问题
   ======================================== */

/* Layer弹窗容器 - 重置文字颜色 */
.layui-layer,
.layui-layer * {
    color: #333 !important;
}

/* Layer弹窗标题 */
.layui-layer-title {
    color: #333 !important;
    background-color: #fff !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Layer弹窗内容 */
.layui-layer-content {
    color: #333 !important;
    background-color: #fff !important;
}

/* Layer弹窗按钮 */
.layui-layer-btn a {
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #dedede !important;
}

/* Layer弹窗主按钮 */
.layui-layer-btn .layui-layer-btn0 {
    color: #fff !important;
    background-color: #1e9fff !important;
    border-color: #1e9fff !important;
}

/* Layer弹窗关闭按钮 */
.layui-layer-setwin a {
    color: #333 !important;
}

/* Layer弹窗图标 */
.layui-layer-ico {
    color: #333 !important;
}

/* Layer弹窗提示框 */
.layui-layer-dialog {
    background-color: #fff !important;
}

/* Layer加载层 */
.layui-layer-loading {
    background-color: transparent !important;
}

/* Layer弹窗内容文字居中 */
.layui-layer-dialog .layui-layer-content {
    text-align: center !important;
}

/* Layer弹窗按钮区域居中 */
.layui-layer-btn {
    text-align: center !important;
}

/* 确保layer弹窗在深色模式下也能正常显示 */
body .layui-layer {
    color-scheme: light !important;
}

/* 滚动指示器 */
.fastaigc_scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    opacity: 0.6;
    z-index: 10;
    cursor: pointer;
}

.fastaigc_scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% {
        opacity: 1;
        top: 8px;
    }
    50% {
        opacity: 0.5;
        top: 20px;
    }
}

/* 徽章标签 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge-primary {
    background: var(--primary-color);
    color: var(--text-primary);
}

.badge-green {
    background: var(--accent-green);
    color: var(--bg-dark);
}

/* 图标样式 */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.icon-purple {
    background: linear-gradient(135deg, rgba(0, 208, 255, 0.2), rgba(0, 255, 200, 0.2));
    color: #00d0ff;
}

.icon-green {
    background: rgba(0, 214, 143, 0.2);
    color: var(--accent-green);
}

.icon-blue {
    background: rgba(47, 128, 237, 0.2);
    color: var(--accent-blue);
}

/* ========================================
   公共 Loading 组件
   ======================================== */

/* Loading 遮罩层 */
.fastaigc-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fastaigc-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Loading 内容容器 */
.fastaigc-loading-content {
    text-align: center;
    padding: 40px 20px;
}

/* Loading 图标容器 */
.fastaigc-loading-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

/* Loading 图标动画 */
@keyframes loadingPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Loading 文字 */
.fastaigc-loading-text {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Loading 副标题 */
.fastaigc-loading-subtext {
    color: var(--text-muted);
    font-size: 14px;
}

/* Loading 省略号动画 */
.fastaigc-loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}

.fastaigc-loading-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: loadingDot 1.4s ease-in-out infinite;
}

.fastaigc-loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.fastaigc-loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fastaigc-loading-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .fastaigc-loading-text {
        font-size: 15px;
    }
    
    .fastaigc-loading-subtext {
        font-size: 13px;
    }
    
    .fastaigc-loading-content {
        padding: 32px 16px;
    }
}

@media (max-width: 480px) {
    .fastaigc-loading-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }
    
    .fastaigc-loading-text {
        font-size: 14px;
    }
    
    .fastaigc-loading-subtext {
        font-size: 12px;
    }
}


