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

:root {
    --primary-color: #fef3c7; /* 淡黄色主色 */
    --secondary-color: #fde68a; /* 次淡黄色 */
    --accent-color: #fef3c7;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --background-dark: #0a0a0a;
    --background-darker: #000000;
    --background-card: #1a1a1a;
    --background-card-hover: #262626;
    --border-color: #262626;
    --border-hover: #404040;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    --gradient-secondary: linear-gradient(135deg, #fde68a 0%, #fef3c7 100%);
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

@media (max-width: 1200px) {
    .nav-container {
        max-width: 1000px;
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        max-width: 100%;
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 20px;
    }
}

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

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 16px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-language {
    position: relative;
}

/* 原生选择器隐藏，保留供辅助脚本与回退 */
.language-select { display:none; }

/* 自定义语言下拉组件 */
.lang-dropdown { position: relative; min-width: 160px; }
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 40px 10px 16px;
    border-radius: 12px;
    background: var(--background-card);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 0 1px var(--border-color);
}
.lang-toggle:hover { background: var(--background-card-hover); box-shadow: inset 0 0 0 1px var(--border-hover); }
.lang-toggle:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,212,170,.15), inset 0 0 0 1px var(--primary-color); }

/* 箭头 */
.lang-toggle::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: translateY(-60%) rotate(45deg);
    transition: transform .2s ease, border-color .2s ease;
}

.lang-dropdown[aria-expanded="true"] .lang-toggle::after {
    transform: translateY(-60%) rotate(225deg);
    border-color: var(--primary-color);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--background-card);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,.5), inset 0 0 0 1px var(--border-color);
    padding: 8px;
    max-height: 320px;
    overflow: auto;
    list-style: none;
    display: none;
    z-index: 1001;
}

.lang-dropdown[aria-expanded="true"] .lang-menu { display: block; }

.lang-menu li {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.lang-menu li:hover { background: var(--background-card-hover); color: var(--text-primary); }
.lang-menu li.active { background: rgba(0,212,170,.12); color: var(--text-primary); }

.language-select option {
    background: var(--background-card);
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 主页横幅 */
.hero {
    padding: 140px 0 100px;
    background: var(--background-darker);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(254, 243, 199, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(253, 230, 138, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 500px;
}

@media (max-width: 1200px) {
    .hero-container {
        max-width: 1000px;
        padding: 0 32px;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        max-width: 100%;
        padding: 0 24px;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 20px;
        gap: 30px;
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--background-dark);
    box-shadow: 0 8px 32px rgba(254, 243, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(254, 243, 199, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(254, 243, 199, 0.1);
    transform: translateY(-4px);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-4px);
}

.hero-image { 
    position: relative; 
    display: flex; 
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* 代码终端容器 */
.hero-code {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0b0b0b;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.hero-code:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(254, 243, 199, 0.1);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.terminal-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.terminal-bar .dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    display: inline-block;
    transition: all 0.3s ease;
}

.terminal-bar .dot.red { 
    background: #ff5f56; 
    box-shadow: 0 0 4px rgba(255, 95, 86, 0.3);
}

.terminal-bar .dot.yellow { 
    background: #ffa500; 
    box-shadow: 0 0 4px rgba(255, 165, 0, 0.3);
}

.terminal-bar .dot.green { 
    background: #00ff41; 
    box-shadow: 0 0 4px rgba(0,255,65,0.3);
}

.terminal-bar .title { 
    color: var(--primary-color); 
    font-size: 12px; 
    margin-left: auto; 
    text-shadow: 0 0 2px rgba(254, 243, 199, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.code-window {
    margin: 0;
    padding: 16px 18px 24px 18px;
    color: #00ff41;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: radial-gradient(1200px 400px at 0% 0%, rgba(254,243,199,.05), transparent 60%), 
                radial-gradient(800px 300px at 100% 100%, rgba(255,165,0,.03), transparent 60%), 
                #0b0b0b;
    max-height: 360px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    text-shadow: 0 0 3px rgba(0,255,65,0.2), 0 0 6px rgba(0,255,65,0.2), 0 0 9px rgba(0,255,65,0.2);
    position: relative;
}

.code-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(254,243,199,0.02) 50%, transparent 100%);
    pointer-events: none;
    animation: codeGlow 4s ease-in-out infinite;
}

@keyframes codeGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

#heroCode { 
    white-space: pre; 
    display: inline-block; 
    color: #00ff41;
    text-shadow: 0 0 3px rgba(0,255,65,0.2), 0 0 6px rgba(0,255,65,0.2), 0 0 9px rgba(0,255,65,0.2);
    position: relative;
    z-index: 1;
}

.caret { 
    display: inline-block; 
    width: 10px; 
    height: 18px; 
    background: var(--primary-color); 
    margin-left: 2px; 
    animation: blink 1s steps(1) infinite, caretGlow 2s ease-in-out infinite; 
    vertical-align: -3px; 
    box-shadow: 0 0 3px rgba(254,243,199,0.3), 0 0 6px rgba(254,243,199,0.2);
    border-radius: 1px;
}

@keyframes caretGlow {
    0%, 100% { 
        box-shadow: 0 0 3px rgba(254,243,199,0.3), 0 0 6px rgba(254,243,199,0.2);
    }
    50% { 
        box-shadow: 0 0 6px rgba(254,243,199,0.5), 0 0 12px rgba(254,243,199,0.3);
    }
}

/* 语法高亮样式 */
#heroCode .keyword {
    color: #ffa500;
    text-shadow: 0 0 3px rgba(255,165,0,0.3);
    font-weight: 600;
}

#heroCode .string {
    color: #00ff41;
    text-shadow: 0 0 3px rgba(0,255,65,0.3);
}

#heroCode .comment {
    color: #888;
    text-shadow: 0 0 2px rgba(136,136,136,0.2);
    font-style: italic;
}

#heroCode .number {
    color: #ff6b6b;
    text-shadow: 0 0 3px rgba(255,107,107,0.3);
    font-weight: 500;
}

#heroCode .function {
    color: #4ecdc4;
    text-shadow: 0 0 3px rgba(78,205,196,0.3);
}

#heroCode .class {
    color: #ffa500;
    text-shadow: 0 0 3px rgba(255,165,0,0.3);
    font-weight: 600;
}

@keyframes blink { 50% { opacity: 0; } }

/* 关于我们 */
.about {
    padding: 100px 0;
    background: var(--background-dark);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 80px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 0.6fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.about-features {
    display: grid;
    gap: 32px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--background-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--primary-color);
    background: var(--background-card-hover);
    transform: translateX(8px);
}

.feature i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-top: 4px;
    width: 24px;
    text-align: center;
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.about-image {
    text-align: center;
    position: relative;
}

.about-img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

/* 服务 */
.services {
    padding: 100px 0;
    background: var(--background-darker);
}

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

.service-card {
    background: var(--background-card);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background: var(--background-card-hover);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--background-dark);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* 产品展示 */
.products {
    padding: 100px 0;
    background: var(--background-dark);
}

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

.product-card {
    background: var(--background-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-content {
    padding: 32px;
}

.product-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.product-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: var(--background-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--background-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    min-width: 280px;
    flex: 1;
}

.contact-item:hover {
    border-color: var(--primary-color);
    background: var(--background-card-hover);
    transform: translateX(8px);
}

.contact-item i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-top: 4px;
    width: 24px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1rem;
}

.contact-form {
    background: var(--background-card);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--background-dark);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(254, 243, 199, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* 页脚 */
.footer {
    background: var(--background-darker);
    color: white;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

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

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

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

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

.footer-bottom p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .service-card,
    .product-card {
        padding: 32px;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        min-width: auto;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .service-card,
    .product-card {
        padding: 24px;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
}

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

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 代码窗口专用滚动条样式 */
.code-window::-webkit-scrollbar {
    width: 8px;
}

.code-window::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.code-window::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    opacity: 0.7;
    box-shadow: 0 0 2px rgba(254,243,199,0.3);
    transition: all 0.3s ease;
}

.code-window::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    opacity: 1;
    box-shadow: 0 0 4px rgba(254,243,199,0.5);
    transform: scale(1.1);
}

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: var(--background-dark);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 仅在中文模式下显示中文公司名括号内容 */
:root:lang(zh-CN) .show-cn { display: inline; }
:root:not(:lang(zh-CN)) .show-cn { display: none; }
