/* common.css - 三禾科技平台 高端设计主题样式 */
/* 依赖：Font Awesome 6 (由JS自动加载) */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色：活力橙渐变 */
    --orange-start: #f45015;
    --orange-end: #f45015;
    --orange-gradient: linear-gradient(135deg, #f45015 0%, #f9a631 100%);
    --orange-gradient-hover: linear-gradient(135deg, #f45015 0%, #f9a631 100%);
    --orange-light: #FFF3E6;
    --orange-glow: 0 4px 20px rgba(255, 122, 0, 0.35);
    --olive: #47C09F;
    --olive-light: #EFF5E6;
    --dark: #1A1F2E;
    --gray-600: #5A6577;
    --gray-400: #A8B2C4;
    --gray-200: #E8EDF2;
    --gray-100: #F5F7FA;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-100);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

/* ----- 头部设计 (高端毛玻璃) ----- */
.main-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    width: 100%;
}
.main-header.scrolled {
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
/* Logo */
.logo a {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.logo .brand-orange {
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo .brand-olive {
    color: var(--olive);
    -webkit-text-fill-color: var(--olive);
}
.logo .brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange-gradient);
    margin-left: 2px;
}
/* 主导航 */
.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.main-nav ul li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 40px;
    transition: all 0.25s ease;
    position: relative;
    letter-spacing: 0.01em;
}
.main-nav ul li a:hover {
    background: var(--orange-light);
    color: #E86E00;
}
.main-nav ul li a.active {
    background: var(--orange-light);
    color: #E86E00;
    font-weight: 600;
}
/* 按钮组 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
}
.btn-grad {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 22px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}
.btn-grad::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: var(--orange-gradient);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.btn-grad::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: var(--orange-gradient-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.btn-grad:hover::after {
    opacity: 1;
}
.btn-grad:hover {
    transform: translateY(-2px);
    box-shadow: var(--orange-glow);
}
.btn-grad:active {
    transform: scale(0.96);
}
.btn-grad span,
.btn-grad i {
    position: relative;
    z-index: 1;
    color: white;
}
.btn-grad i {
    font-size: 14px;
}
/* 注册按钮 */
.btn-register {
    padding: 10px 28px;
    font-size: 14px;
}
.btn-register i {
    font-size: 15px;
}
/* 登录幽灵按钮 */
.btn-ghost {
    background: transparent;
    border: 2px solid #FF7A00;
    padding: 8px 20px;
    position: relative;
    transition: all 0.3s ease;
}
.btn-ghost span {
    color: #FF7A00;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}
.btn-ghost i {
    color: #FF7A00;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}
.btn-ghost::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 40px;
    background: var(--orange-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.btn-ghost:hover::before {
    opacity: 1;
}
.btn-ghost:hover span,
.btn-ghost:hover i {
    color: white;
}
.btn-ghost:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--orange-glow);
}
/* 成为创作者 (光晕特效) */
.btn-creator {
    padding: 9px 24px;
    position: relative;
}
.btn-creator::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: var(--orange-gradient);
    z-index: 0;
}
.btn-creator::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 40px;
    background: var(--orange-gradient);
    z-index: -1;
    filter: blur(12px);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}
.btn-creator:hover::after {
    opacity: 0.9;
}
.btn-creator span,
.btn-creator i {
    position: relative;
    z-index: 1;
    color: white;
}
.btn-creator:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--orange-glow);
}
/* 发布信息 (流光特效) */
.btn-publish {
    padding: 9px 24px;
    position: relative;
    overflow: hidden;
}
.btn-publish::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: var(--orange-gradient);
    z-index: 0;
}
.btn-publish .shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    z-index: 1;
    animation: shimmerMove 3.5s infinite ease-in-out;
}
@keyframes shimmerMove {
    0% { left: -100%; }
    60% { left: 200%; }
    100% { left: 200%; }
}
.btn-publish span,
.btn-publish i {
    position: relative;
    z-index: 2;
    color: white;
}
.btn-publish:hover {
    transform: translateY(-2px);
    box-shadow: var(--orange-glow);
}
/* 移动端菜单 */
.menu-toggle {
    display: none;
    font-size: 26px;
    color: var(--dark);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
    transition: color 0.2s;
}
.menu-toggle:hover {
    color: #FF7A00;
}

/* ----- 响应式 (头部) ----- */
@media (max-width: 1100px) {
    .header-inner { padding: 0 24px; }
    .main-nav ul li a { padding: 6px 12px; font-size: 13px; }
    .btn-grad { padding: 7px 16px; font-size: 12px; }
    .btn-register { padding: 8px 20px; font-size: 13px; }
    .btn-ghost { padding: 6px 14px; }
    .btn-creator, .btn-publish { padding: 7px 16px; }
}
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-top: 1px solid rgba(0,0,0,0.04);
    }
    .main-nav.open { max-height: 600px; }
    .main-nav ul {
        flex-direction: column;
        padding: 20px 24px 30px;
        gap: 6px;
        align-items: stretch;
    }
    .main-nav ul li a {
        font-size: 16px;
        padding: 10px 16px;
        border-radius: 12px;
        display: block;
    }
    .nav-actions {
        flex-wrap: wrap;
        margin-left: 0;
        margin-top: 12px;
        gap: 10px;
        justify-content: center;
    }
    .nav-actions .btn-grad {
        flex: 1 1 auto;
        justify-content: center;
        padding: 10px 20px;
        font-size: 14px;
    }
    .btn-ghost { border-width: 2px; }
}
@media (max-width: 480px) {
    .header-inner { padding: 0 16px; height: 64px; }
    .logo a { font-size: 20px; }
    .nav-actions .btn-grad { font-size: 12px; padding: 8px 14px; }
    .btn-register { padding: 8px 16px; font-size: 12px; }
}

/* ===== 尾部设计 (浅色雅致) ===== */
.main-footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 52px 0 24px;
    margin-top: 60px;
    width: 100%;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
.footer-brand h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}
.footer-brand h3 .brand-orange {
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-brand h3 .brand-olive {
    color: var(--olive);
    -webkit-text-fill-color: var(--olive);
}
.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-600);
    max-width: 320px;
}
.footer-brand .contact-row {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-brand .contact-row a,
.footer-brand .contact-row span {
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}
.footer-brand .contact-row a:hover {
    color: #FF7A00;
}
.footer-brand .contact-row i {
    width: 18px;
    color: #FF7A00;
    font-size: 15px;
}
.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col ul li a {
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-col ul li a:hover {
    color: #FF7A00;
    transform: translateX(4px);
}
.footer-col ul li a .arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    color: #FF7A00;
    font-size: 12px;
}
.footer-col ul li a:hover .arrow {
    transform: translateX(4px);
}
/* 尾部高亮渐变文字 */
.highlight-grad {
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}
.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 22px;
    margin-top: 36px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0;
}
.footer-bottom .legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-bottom .legal-links a {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom .legal-links a:hover {
    color: #FF7A00;
}
.footer-bottom .beian a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-bottom .beian a:hover {
    color: #FF7A00;
}
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 0 24px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { max-width: 100%; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-left: 24px;
        padding-right: 24px;
    }
    .footer-bottom .legal-links { justify-content: center; }
}
@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }
    .footer-bottom {
        padding-left: 16px;
        padding-right: 16px;
    }
    .footer-bottom .legal-links { gap: 14px; }
}