/* 尺玉科技官网样式 - 高级简约风格 */

/* ===== 基础样式 ===== */
:root {
    /* 主色调 - 极简黑白 */
    --primary-color: #000000;
    --secondary-color: #FFFFFF;

    /* 灰度系统 */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* 文字颜色 */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;

    /* 背景色 - 舒适的米白色 */
    --bg-primary: #F8F8F6;
    --bg-secondary: #F0F0EE;
    --bg-card: #FFFFFF;

    /* 边框 */
    --border-light: #E8E8E6;
    --border-medium: #D8D8D6;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image:
        linear-gradient(135deg, rgba(0, 0, 0, 0.01) 25%, transparent 25%),
        linear-gradient(225deg, rgba(0, 0, 0, 0.01) 25%, transparent 25%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.01) 25%, transparent 25%),
        linear-gradient(315deg, rgba(0, 0, 0, 0.01) 25%, transparent 25%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 0, 20px -20px, 0px 20px;
    overflow-x: hidden;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
nav {
    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-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

nav .logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

nav .logo-img:hover {
    transform: scale(1.05);
}

nav .logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== Hero 区域 ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    z-index: 0;
}

.particles-canvas,
.hero-bg-shapes {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 3rem;
}

.hero-logo-img {
    height: 120px;
    width: auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 8px;
    color: var(--primary-color);
}

.hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
}

.hero .tagline {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-tertiary);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ===== 通用区域样式 ===== */
section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: 4px;
}

section .section-subtitle {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-bottom: 4rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

section .content {
    max-width: 900px;
    margin: 0 auto;
}

section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
}

section h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===== 卡片网格 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* 主营业务 - 4列布局 */
#business .card-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* 核心优势 - 5列布局 */
#advantages .card-grid {
    grid-template-columns: repeat(5, 1fr);
}

/* 产品展示 */
.product-showcase {
    text-align: center;
    margin: 3rem 0;
}

.product-image {
    max-width: 100%;
    height: auto;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* ===== NEKO 系列专区 ===== */
#neko-series {
    background: var(--bg-secondary);
}

.product-series-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.series-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.series-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.series-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.series-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.series-card:hover .series-image {
    transform: scale(1.05);
}

.series-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem;
    color: white;
}

.series-overlay h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    color: white;
}

.series-overlay p {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
    color: white;
}

.series-content {
    padding: 2rem;
}

.series-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.series-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.series-link:hover {
    background: var(--text-secondary);
    transform: translateX(4px);
}

/* 响应式 */
@media (max-width: 992px) {
    .product-series-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card h4 {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.card p {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

/* ===== 特色列表 ===== */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-weight: 300;
}

.feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
    font-weight: 300;
}

/* ===== 高亮框 ===== */
.highlight-box {
    background: var(--bg-secondary);
    border-left: 2px solid var(--primary-color);
    padding: 2rem;
    margin: 2rem 0;
}

.highlight-box p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.highlight-box strong {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== 信息表格 ===== */
.info-table {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    background: var(--bg-secondary);
    padding: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
}

.info-value {
    padding: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===== 页脚 ===== */
footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 3rem 0;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.7;
    letter-spacing: 1px;
    font-weight: 300;
    font-size: 0.9rem;
}

/* ===== 回到顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片加载动画 */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

.footer-language {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

.footer-language select {
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.footer-language select option {
    color: #1f2937;
    background: #ffffff;
}

footer .icp-link {
    color: inherit;
    text-decoration: none;
}

footer .icp-link:hover {
    text-decoration: underline;
}

/* 鼠标光效（可选） */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    /* 核心优势 - 在中等屏幕上改为3列 */
    #advantages .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    /* 主营业务 - 在中等屏幕上改为2列 */
    #business .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 核心优势 - 在中等屏幕上改为2列 */
    #advantages .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 导航栏 */
    nav .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    /* 区域 */
    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 2rem;
    }

    section h3 {
        font-size: 1.5rem;
    }

    /* 卡片网格 */
    .card-grid,
    #business .card-grid,
    #advantages .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* 信息表格 */
    .info-row {
        grid-template-columns: 1fr;
    }

    .info-label {
        border-bottom: 1px solid var(--border-color);
    }

    /* 回到顶部 */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* ===== 打印样式 ===== */
@media print {
    nav, .back-to-top, .menu-toggle {
        display: none;
    }

    section {
        page-break-inside: avoid;
        opacity: 1;
        transform: none;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 3rem 0;
    }
}
