/* ==========================================
   ClipDrop Landing Page Stylesheet
   ========================================== */

:root {
    --bg-color: #080B11;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --hover-gradient: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
    --font-outfit: 'Outfit', 'Noto Sans SC', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 11, 17, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 0;
}

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

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

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-links .nav-btn {
    background: var(--primary-gradient);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-links .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px 0;
    text-align: center;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.btn {
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Mockup Terminal */
.hero-mockup {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.mockup-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--card-border);
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

.mockup-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.mockup-body {
    padding: 24px;
    font-family: monospace;
    font-size: 14px;
    color: #A7F3D0;
}

.code-line {
    display: block;
    margin-bottom: 8px;
}

.code-highlight {
    color: #F43F5E;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.05);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Download Section */
.download {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.download-bg-glow {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.download-container {
    position: relative;
    z-index: 2;
}

.download h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.download p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.download-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.btn-icon {
    font-size: 28px;
}

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

.btn-desc {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-title {
    font-size: 16px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #04060A;
    border-top: 1px solid var(--card-border);
    padding: 80px 0 30px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info {
    max-width: 320px;
}

.footer-info p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 14px;
}

.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-email {
    font-size: 18px;
    font-weight: 600;
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #60A5FA;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--card-border);
    padding-top: 30px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* 内测弹窗 Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.1);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-email-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
    transition: background 0.3s ease;
}

.modal-email-box:hover {
    background: rgba(139, 92, 246, 0.05);
}

.modal-email-link {
    font-size: 20px;
    font-weight: 700;
    color: #3B82F6;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.modal-email-link:hover {
    color: #60A5FA;
}

.modal-tip {
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.5;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.01);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid #8B5CF6;
    text-align: left;
}

.modal-ok-btn {
    width: 100%;
    margin-top: 10px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 40px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .footer-container {
        flex-direction: column;
    }
    .modal-content {
        padding: 30px 20px;
    }
    .modal-email-link {
        font-size: 18px;
    }
}
