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

:root {
    --primary-color: #10b981;
    --primary-hover: #059669;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

.header-actions {
    display: flex;
    gap: 12px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background: white;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-hero {
    padding: 16px 48px;
    font-size: 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4);
}

.btn-download {
    background: var(--primary-color);
    color: white;
    width: 100%;
    padding: 14px 24px;
}

.btn-download:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* 主横幅 */
.hero {
    margin-top: 70px;
    padding: 100px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.feature-tag {
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: var(--shadow);
}

.version-info {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-light);
}

/* 窗口模拟图 */
.hero-image {
    position: relative;
    z-index: 1;
}

.screenshot-placeholder {
    width: 100%;
    perspective: 1000px;
}

.window-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s;
}

.window-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.window-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls .control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.window-title {
    color: white;
    font-weight: 600;
}

.window-content {
    display: flex;
    height: 300px;
}

.sidebar {
    width: 150px;
    background: #f8fafc;
    border-right: 1px solid var(--border-color);
    padding: 16px 0;
}

.menu-item {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item.active {
    background: white;
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.main-area {
    flex: 1;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-content: start;
}

.stat-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 24px;
    border-radius: 8px;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

/* 下载区域 */
.download-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 60px;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.download-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.platform-icon {
    margin-bottom: 24px;
}

.windows-icon svg path {
    fill: #0078D4;
}

.apple-icon svg path {
    fill: #555;
}

.download-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.platform-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.download-card .btn {
    margin-top: 24px;
}

/* 什么是指纹浏览器 */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.about-text {
    padding: 20px 0;
}

.about-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: justify;
}

.about-description:last-child {
    margin-bottom: 0;
}

/* 指纹图示 */
.fingerprint-diagram {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1;
}

.diagram-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 10;
}

.center-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

.fingerprint-tags {
    position: relative;
    width: 100%;
    height: 100%;
}

.fp-tag {
    position: absolute;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fp-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* 圆形分布布局 */
.fp-tag:nth-child(1) { top: 0%; left: 30%; }
.fp-tag:nth-child(2) { top: 5%; left: 55%; }
.fp-tag:nth-child(3) { top: 0%; left: 5%; }
.fp-tag:nth-child(4) { top: 20%; left: 75%; }
.fp-tag:nth-child(5) { top: 15%; left: 0%; }
.fp-tag:nth-child(6) { top: 40%; left: 80%; }
.fp-tag:nth-child(7) { top: 35%; left: 0%; }
.fp-tag:nth-child(8) { top: 60%; left: 0%; }
.fp-tag:nth-child(9) { top: 55%; left: 78%; }
.fp-tag:nth-child(10) { top: 75%; left: 70%; }
.fp-tag:nth-child(11) { top: 70%; left: 5%; }
.fp-tag:nth-child(12) { top: 85%; left: 50%; }
.fp-tag:nth-child(13) { top: 88%; left: 20%; }
.fp-tag:nth-child(14) { top: 45%; right: -5%; }
.fp-tag:nth-child(15) { top: 25%; right: 0%; }
.fp-tag:nth-child(16) { top: 10%; right: 8%; }
.fp-tag:nth-child(17) { top: 80%; left: 0%; }

/* 响应式 */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .fingerprint-diagram {
        max-width: 400px;
    }
    
    .fp-tag {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* 功能特性 */
.features-section {
    padding: 80px 0;
}

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

.feature-item {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 价格方案 */
.pricing-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.price {
    margin-bottom: 32px;
}

.currency {
    font-size: 20px;
    color: var(--text-light);
}

.amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-color);
}

.period {
    font-size: 16px;
    color: var(--text-light);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    margin-top: 48px;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.pricing-note p {
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

.pricing-note p:first-child {
    margin-top: 0;
}

.pricing-note p:last-child {
    margin-bottom: 0;
}

.pricing-note strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

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

.contact-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-desc {
    font-size: 14px;
    margin-top: 8px;
    color: var(--text-light) !important;
}

.contact-note {
    margin-top: 60px;
    padding: 30px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.contact-note p {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.contact-note p:first-child {
    margin-top: 0;
}

.contact-note p:last-child {
    margin-bottom: 0;
}

.contact-note strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 页脚 */
.footer {
    background: var(--text-color);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

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

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

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

.footer-section ul li a:hover {
    color: white;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

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

    .hero-subtitle {
        font-size: 18px;
    }

    .download-cards,
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .window-content {
        height: 200px;
    }

    .stat-card {
        font-size: 24px;
        padding: 16px;
    }
}

/* 平滑滚动 + 强制显示滚动条（防止模态框跳动） */
html {
    scroll-behavior: smooth;
    overflow-y: scroll !important;
}

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

.hero-content,
.hero-image {
    animation: fadeInUp 0.8s ease-out;
}

/* ========== 注册模态框样式 ========== */

/* 用户菜单样式 */
.user-greeting {
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.user-greeting span {
    color: var(--primary-color);
    font-weight: 600;
}

/* 次要按钮样式 */
.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* ========== 模态框样式（无动画版） ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

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

/* 模态框内容 */
.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.close {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--text-color);
    background: var(--bg-light);
}

.modal-body {
    padding: 32px;
}

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

.modal-footer p {
    color: var(--text-light);
    font-size: 14px;
    margin: 8px 0;
}

.register-benefits {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 12px 16px;
    border-radius: 8px;
    color: #92400e;
    font-weight: 500;
    margin-top: 16px !important;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.checkbox-group {
    margin: 24px 0;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

/* 错误和成功消息 */
.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    border-left: 4px solid #dc2626;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    border-left: 4px solid #10b981;
}

/* 全宽按钮 */
.btn-block {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* 加载状态 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 动画 */
/* 动画已移除 - 防止模态框跳动 */

/* 响应式 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .btn-secondary,
    .btn-primary {
        padding: 8px 16px;
        font-size: 13px;
    }
}

