/* ============================================
   File Pilot 中文网站 - 公共样式
   包含：CSS变量、基础重置、导航栏、页脚
   ============================================ */

/* 全局变量 */
:root {
    --color-black: #383838;
    --color-blue: #0083B3;
    --color-blue-hover: #006a91;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray: #666666;
    --color-gray-dark: #444444;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-black);
    line-height: 1.6;
    background-color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* ============================================
   导航栏 Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    background: linear-gradient(135deg, rgba(56, 56, 56, 0.95) 0%, rgba(30, 30, 30, 0.98) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 131, 179, 0.5) 50%, transparent 100%);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: translateY(-1px);
}

.header-logo-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-blue) 0%, rgba(0, 131, 179, 0.3) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-logo:hover .header-logo-icon::before {
    opacity: 1;
}

.header-logo img {
    height: 38px;
    width: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 131, 179, 0.3));
}

.header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.header-logo-name {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-logo-company {
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.header-nav-item {
    position: relative;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.header-nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-blue) 0%, rgba(0, 131, 179, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.header-nav-item span {
    position: relative;
    z-index: 1;
}

.header-nav-item:hover {
    color: var(--color-white);
}

.header-nav-item:hover::before {
    opacity: 0.15;
}

.header-nav-item.active {
    color: var(--color-white);
}

.header-nav-item.active::before {
    opacity: 1;
}

.header-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-btn {
    position: relative;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
    overflow: hidden;
}

.header-btn-trial {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.header-btn-trial:hover {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.header-btn-buy {
    background: linear-gradient(135deg, var(--color-blue) 0%, #00a8e8 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 131, 179, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 131, 179, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 汉堡菜单按钮 */
.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    gap: 5px;
    transition: all 0.3s ease;
}

.header-hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-hamburger-line {
    width: 22px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-blue) 0%, rgba(0, 131, 179, 0.6) 100%);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.header-hamburger.active {
    background: rgba(0, 131, 179, 0.2);
    border-color: rgba(0, 131, 179, 0.3);
}

.header-hamburger.active .header-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header-hamburger.active .header-hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header-hamburger.active .header-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端菜单 */
.header-mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.98) 0%, rgba(25, 25, 25, 0.99) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 20px 24px 28px;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-mobile-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.header-mobile-menu-item {
    position: relative;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.header-mobile-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--color-blue);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.header-mobile-menu-item:hover,
.header-mobile-menu-item.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 24px;
}

.header-mobile-menu-item:hover::before,
.header-mobile-menu-item.active::before {
    height: 60%;
}

.header-mobile-menu-item.active {
    background: linear-gradient(90deg, rgba(0, 131, 179, 0.2) 0%, transparent 100%);
}

.header-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header-mobile-btn {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    text-align: center;
}

.header-mobile-btn-trial {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-mobile-btn-buy {
    background: linear-gradient(135deg, var(--color-blue) 0%, #00a8e8 100%);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 131, 179, 0.4);
}

@media (max-width: 768px) {
    .header {
        height: 64px;
    }

    .header-mobile-menu {
        top: 64px;
    }

    .header-nav,
    .header-actions {
        display: none;
    }

    .header-hamburger {
        display: flex;
    }

    .header-logo img {
        height: 32px;
    }

    .header-logo-name {
        font-size: 17px;
    }
}

/* ============================================
   页脚 Footer
   ============================================ */
.footer {
    position: relative;
    background: linear-gradient(180deg, #0d0d0d 0%, #000000 100%);
    padding: 60px 0 40px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 131, 179, 0.3) 50%, transparent 100%);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-main {
    text-align: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-brand-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand-icon img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 131, 179, 0.3));
}

.footer-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-copyright a {
    color: var(--color-blue);
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #00c4ff;
}

.footer-disclaimer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.footer-disclaimer-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-disclaimer-text:last-child {
    margin-bottom: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-disclaimer-highlight {
    color: var(--color-blue);
    font-weight: 600;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--color-white);
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 131, 179, 0.1);
    border: 1px solid rgba(0, 131, 179, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    background: rgba(0, 131, 179, 0.2);
    border-color: rgba(0, 131, 179, 0.4);
}

.footer-contact-icon svg {
    width: 16px;
    height: 16px;
    color: var(--color-blue);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-contact-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-value {
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 0 30px;
    }

    .footer-disclaimer {
        padding: 20px;
    }

    .footer-disclaimer-text {
        font-size: 12px;
    }

    .footer-contact {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .footer-contact-item {
        flex: 1;
        min-width: 140px;
        max-width: 180px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-contact-info {
        align-items: center;
    }

    .footer-contact-value {
        font-size: 12px;
    }
}
