/* ========================================
   有司网络 - 官方网站样式（活力版）
   ======================================== */

/* 基础变量 - 活力配色 */
:root {
    --primary-blue: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent-orange: #f472b6;
    --accent-light: #fb7185;
    --free-green: #10b981;
    --vibrant-purple: #a855f7;
    --vibrant-cyan: #06b6d4;
    --bg-light: #faf5ff;
    --bg-white: #ffffff;
    --text-dark: #1e1b4b;
    --text-gray: #475569;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(99, 102, 241, 0.1);
    --shadow-md: 0 4px 14px rgba(99, 102, 241, 0.15);
    --shadow-lg: 0 10px 40px rgba(99, 102, 241, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(99, 102, 241, 0.08);
    z-index: 1000;
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 3px;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 移动端菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 3px;
    transition: 0.3s;
}

/* 主内容 */
main {
    margin-top: 70px;
}

/* Hero区域 - 活力渐变 */
.hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 30%, #a855f7 60%, #ec4899 100%);
    color: white;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

/* 免费标识 */
.free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5); }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 永久免费承诺区域 */
.free-promise {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    padding: 25px 0;
}

.promise-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.05rem;
}

.promise-icon {
    width: 28px;
    height: 28px;
    background: white;
    color: var(--free-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* 按钮样式 - 活力渐变 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: #6366f1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    transform: translateY(-3px);
}

.btn-accent {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
    box-shadow: 0 4px 20px rgba(244, 114, 182, 0.4);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #fb7185, #f472b6);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(244, 114, 182, 0.5);
}

.btn-green {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-green:hover {
    background: linear-gradient(135deg, #34d399, #22d3ee);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

/* 特色区域 */
.features {
    padding: 80px 0;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}

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

.section-title h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
    transition: all 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* 产品卡片 */
.products {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(99, 102, 241, 0.15);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-card:nth-child(2) .product-image {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.product-card:nth-child(3) .product-image {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.product-content {
    padding: 25px;
    position: relative;
}

.product-badge {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 8px;
}

.product-badge.planning {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.free-tag {
    position: absolute;
    top: 25px;
    right: 25px;
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 15px;
}

.product-content h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s;
}

.product-link:hover {
    gap: 10px;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #a855f7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* 页面头部 - 活力渐变 */
.page-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #a855f7 70%, #ec4899 100%);
    color: white;
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.page-header p {
    opacity: 0.95;
    font-size: 1.1rem;
}

/* 产品详情页 */
.products-section {
    padding: 60px 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 50px;
    background: linear-gradient(135deg, #faf5ff, #ffffff);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.product-detail.reverse {
    direction: rtl;
}

.product-detail.reverse > * {
    direction: ltr;
}

.product-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-info .status {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-info .status.planning {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.product-info .free-badge-large {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 10px;
}

.product-info p {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.product-visual {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
    text-align: center;
}

.product-visual .icon {
    font-size: 6rem;
    margin-bottom: 20px;
}

/* 技术分享列表 */
.tech-list {
    padding: 60px 0;
}

.article-list {
    max-width: 800px;
    margin: 0 auto;
}

.article-item {
    background: white;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.article-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.article-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.article-item h3 a {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.article-item h3 a:hover {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-item p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* 下载页面 */
.download-section {
    padding: 60px 0;
}

.download-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.1);
}

.download-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #a855f7 70%, #ec4899 100%);
    color: white;
    padding: 50px;
    text-align: center;
}

.download-header .icon {
    font-size: 5rem;
    margin-bottom: 15px;
}

.download-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.download-header .free-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #86efac, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-body {
    padding: 40px;
    text-align: center;
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

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

.version-item .value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version-item .label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.qr-section {
    margin-bottom: 30px;
}

.qr-section img {
    width: 180px;
    height: 180px;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.qr-hint {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 15px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 45px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.download-btn:hover {
    background: linear-gradient(135deg, #34d399, #22d3ee);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.download-note {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    border-radius: var(--radius);
    color: #059669;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 更新日志 */
.changelog {
    max-width: 600px;
    margin: 40px auto 0;
    background: linear-gradient(135deg, #faf5ff, #ffffff);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.changelog h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.changelog-item {
    padding-left: 20px;
    border-left: 3px solid;
    border-image: linear-gradient(135deg, #6366f1, #a855f7) 1;
    margin-bottom: 20px;
}

.changelog-item .version {
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.changelog-item .date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.changelog-item ul {
    margin-left: 20px;
    color: var(--text-gray);
}

.changelog-item li {
    margin-bottom: 5px;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .promise-grid {
        gap: 15px;
    }

    .promise-item {
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .product-detail.reverse {
        direction: ltr;
    }

    .product-visual {
        order: -1;
    }

    .download-body {
        padding: 25px;
    }

    .version-info {
        gap: 20px;
    }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content, .feature-card, .product-card, .article-item, .download-card {
    animation: fadeIn 0.6s ease-out;
}

/* 额外活力动画 */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero, .page-header, .download-header {
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
}
