* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f5f5f7;
    --card-bg: #f0f0f0;
    --text-primary: #000000;
    --text-secondary: #86868b;
    --accent: #1a69d1;
    --accent-hover: #0d4da3;
    --success: #3abe23;
    --error: #e13838;
    --border: rgba(0,0,0,0.1);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode {
    --primary-bg: #0d0d0e;
    --secondary-bg: #161618;
    --card-bg: #1e1e20;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a5;
    --border: rgba(255,255,255,0.08);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.3s ease;
}

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

/* Header */
header {
    background-color: rgba(var(--primary-bg), 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 1px var(--border);
}

/* 羽化效果 */
.feather-transition {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.8) 20%,
        rgba(255, 255, 255, 0.5) 40%, 
        rgba(255, 255, 255, 0.2) 60%,
        rgba(255, 255, 255, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

body.dark-mode .feather-transition {
    background: linear-gradient(to bottom, 
        rgba(13, 13, 14, 0.95) 0%, 
        rgba(13, 13, 14, 0.8) 20%,
        rgba(13, 13, 14, 0.5) 40%, 
        rgba(13, 13, 14, 0.2) 60%,
        rgba(13, 13, 14, 0) 100%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
}

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

.logo-img {
    height: 38px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-link {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.nav-link:hover {
    background-color: var(--secondary-bg);
    transform: translateY(-2px);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-left: 10px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px var(--border);
}

.theme-toggle i {
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle .fa-sun {
    color: #FFA500;
}

.theme-toggle .fa-moon {
    color: #9DB4FF;
    transform: translateY(50px);
    opacity: 0;
}

body.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .theme-toggle .fa-sun {
    transform: translateY(-50px);
    opacity: 0;
}

body.dark-mode .theme-toggle .fa-moon {
    transform: translateY(0);
    opacity: 1;
}

/* Hero Section */
.install-hero {
    padding: 100px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
    text-align: center;
    z-index: 1;
}

#heroBackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.install-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.install-hero p {
    font-size: 18px;
    color: white;
    max-width: 600px;
    margin: 0 auto 30px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* Installation Form */
.install-container {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.install-form {
    flex: 1;
    min-width: 300px;
}

.install-steps {
    flex: 1;
    min-width: 300px;
}

.form-card {
    background-color: var(--card-bg);
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.form-card .card-content {
    position: relative;
    z-index: 2;
}

.form-card .bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.form-card .card-content h2,
.form-card .card-content label {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-card .card-content p,
.form-card .card-content span:not(a) {
    color: rgba(255, 255, 255, 0.9);
}

.form-card .card-content a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.form-group {
    margin-bottom: 25px;
}

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

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field::placeholder {
    color: var(--text-secondary);
}

.input-field:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 105, 209, 0.2);
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
}

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

.btn-outline:hover {
    background-color: var(--accent);
    color: #fff;
}

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

.btn-success:hover {
    background-color: #2d8d1a;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 25px 0;
}

.checkbox-group input {
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-group a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.form-divider {
    height: 1px;
    background-color: var(--border);
    margin: 30px 0;
    position: relative;
}

.form-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--card-bg);
    padding: 0 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Steps Section */
.steps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.steps-header h2 {
    font-size: 28px;
}

.step-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.step-number {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.step-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

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

.step-icon {
    font-size: 24px;
    color: var(--accent);
    min-width: 40px;
    text-align: center;
}

/* Features Section */
.features-section {
    background-color: var(--secondary-bg);
    padding: 60px 0;
    border-radius: 30px;
    margin-bottom: 40px;
}

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

.feature-card {
    background-color: var(--primary-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

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

/* Footer */
footer {
    background-color: var(--secondary-bg);
    padding: 50px 0 30px;
    border-radius: 30px 30px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* 语言切换时的动画效果 */
[data-lang-key] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-changing [data-lang-key] {
    opacity: 0;
    transform: translateY(-10px);
}

.language-after [data-lang-key] {
    transform: translateY(10px);
    opacity: 0;
}

.language-complete [data-lang-key] {
    transform: translateY(0);
    opacity: 1;
}

/* 汉堡菜单基本样式 */
.hamburger-menu {
    display: none;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px auto;
    transition: all 0.3s ease;
    display: block;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 0 10px;
        position: relative;
    }
    
    /* 在移动设备上显示汉堡菜单 */
    .hamburger-menu {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-bg);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        z-index: 1000;
        border-radius: 0 0 20px 20px;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a.nav-link {
        width: 100%;
        margin: 5px 0;
        justify-content: center;
    }
    
    .nav-links .theme-toggle, .nav-links .lang-toggle {
        margin: 15px 0;
    }
    
    .install-hero h1 {
        font-size: 36px;
    }
    
    .install-hero p {
        font-size: 16px;
    }
    
    .install-container {
        flex-direction: column;
    }
    
    .install-form, .install-steps {
        width: 100%;
        min-width: 100%;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .install-hero h1 {
        font-size: 28px;
    }
    
    .install-hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .step-card {
        padding: 15px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-group .btn {
        width: 100%;
    }
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* 语言切换按钮 */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.lang-option {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.lang-option.active {
    background: var(--accent);
    color: #fff;
}

/* 玻璃效果按钮 */
.btn-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

body.dark-mode .btn-glass {
    background: rgba(50, 50, 70, 0.4);
    border: 1px solid rgba(100, 100, 150, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .btn-glass:hover {
    background: rgba(60, 60, 90, 0.5);
    border-color: rgba(100, 100, 150, 0.25);
}

/* Border Beam 特效 */
.border-beam {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.border-beam::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(90deg, transparent, transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.step-card.highlight {
    position: relative;
    border: none;
}

.beam-animation::before {
    background-size: 200% auto;
    animation: beam 3s linear infinite;
}

/* 定义每个步骤的不同颜色 */
.step-1 .border-beam::before {
    background: linear-gradient(90deg, #4361ee, #3a0ca3, transparent, #4361ee);
    background-size: 200% auto;
}

.step-2 .border-beam::before {
    background: linear-gradient(90deg, #4cc9f0, #4895ef, transparent, #4cc9f0);
    background-size: 200% auto;
}

.step-3 .border-beam::before {
    background: linear-gradient(90deg, #f77f00, #fcbf49, transparent, #f77f00);
    background-size: 200% auto;
}

.step-4 .border-beam::before {
    background: linear-gradient(90deg, #ff5a5f, #ff9999, transparent, #ff5a5f);
    background-size: 200% auto;
}

.step-5 .border-beam::before {
    background: linear-gradient(90deg, #2ec4b6, #80ed99, transparent, #2ec4b6);
    background-size: 200% auto;
}

@keyframes beam {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Mac风格平滑光标 */
* {
    cursor: none !important;
}

.show-cursor {
    cursor: auto !important;
}

/* 修复光标在弹窗上的显示问题 */
.mac-cursor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999999;
}

.mac-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    pointer-events: none;
    z-index: 99999999;
    mix-blend-mode: difference;
}

.mac-cursor.hover {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    mix-blend-mode: difference;
}

/* 触控设备不显示自定义光标 */
@media (hover: none) and (pointer: coarse) {
    * {
        cursor: auto !important;
    }
    
    .mac-cursor-container {
        display: none;
    }
}

/* 签名选项样式 */
.signing-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover, .checkbox-option:hover {
    border-color: var(--primary-color);
}

.radio-option input, .checkbox-option input {
    margin-right: 8px;
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
    .radio-option, .checkbox-option {
        background-color: var(--bg-card);
        border-color: var(--border-color-dark);
    }
}

/* 自定义弹窗样式 - 与旧版一致 */
.custom-layer .layui-layer-title {
    background: #000000;
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 10px 10px 0 0;
    padding: 12px 15px;
    font-size: 16px;
}

.custom-layer .layui-layer-content {
    border-radius: 0 0 10px 10px;
    padding: 20px;
    background-color: #ffffff;
    color: #000000;
}

.custom-layer {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
}

.custom-layer button.layui-layer-close {
    color: white;
}

/* 确保光标在弹窗上正常显示 */
.layui-layer-shade, 
.layui-layer,
.layui-layer-page, 
.layui-layer-dialog {
    cursor: none !important;
    z-index: 19891000 !important;
}

.layui-layer * {
    cursor: none !important;
}

/* 免责声明样式 - 与index11.html一致 */
.disclaimer-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

body.dark-mode .disclaimer-box {
    background: linear-gradient(135deg, rgba(30, 30, 33, 0.8), rgba(25, 25, 28, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.disclaimer-box p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.disclaimer-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(45deg);
    z-index: -1;
}

.disclaimer-box .checkbox-group {
    margin-top: 15px;
}

/* 按钮样式 - 与旧版一致 */
.custom-layer .btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    width: 100%;
}

.custom-layer .btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.custom-layer .bg-blue2-dark {
    background-color: #1a69d1;
}

.custom-layer .bg-blue2-dark:hover {
    background-color: #0d4da3;
}

.custom-layer .bg-blue1-dark {
    background-color: #0056b3;
}

.custom-layer .bg-blue1-dark:hover {
    background-color: #004494;
}

.custom-layer .bg-brown1-dark {
    background-color: #8B4513;
}

.custom-layer .bg-brown1-dark:hover {
    background-color: #6B3400;
}

.custom-layer .bg-green1-dark {
    background-color: #28a745;
}

.custom-layer .bg-green1-dark:hover {
    background-color: #218838;
}