/**
 * ランテース・ジャンパン合同会社 - メインスタイル
 * 和纸主题配色方案
 */

/* 导入和纸配色方案 */
@import url('./themes/washi-colors.css');

/* CSS变量定义 - 应用和纸配色 */
:root {
    /* 主要配色 - 基于和纸传统色彩 */
    --primary-color: #4a6fa5;        /* 藍鼠色 - 传统日本蓝 */
    --primary-dark: #364f7a;         /* 深藍鼠色 */
    --primary-light: #6b8bc7;        /* 淡藍鼠色 */
    --secondary-color: #faf8f3;      /* 生成色 - 和纸基础色 */
    --accent-color: #d4673c;         /* 茜色 - 传统红茜染色 */
    
    /* 文字颜色 */
    --text-primary: #3d4142;         /* 深墨色 */
    --text-secondary: #5a5d5f;       /* 中性灰 */
    --text-muted: #7a7d7f;           /* 淡墨色 */
    
    /* 背景色 */
    --bg-main: #faf8f3;              /* 和纸基础色 */
    --bg-paper: #ffffff;             /* 纸白色 */
    --bg-section: #fbf7f0;           /* 白練色 */
    
    /* 边框和分割线 */
    --border-color: #e5e1d8;         /* 和纸边框色 */
    --border-light: #f0ede6;         /* 淡边框色 */
    
    /* 阴影 */
    --shadow-light: 0 2px 12px rgba(74, 111, 165, 0.08);
    --shadow-medium: 0 4px 24px rgba(74, 111, 165, 0.12);
    --shadow-heavy: 0 8px 32px rgba(74, 111, 165, 0.16);
    --shadow-paper: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-hero: linear-gradient(135deg, 
        rgba(74, 111, 165, 0.9) 0%, 
        rgba(107, 139, 199, 0.8) 50%, 
        rgba(154, 180, 189, 0.7) 100%);
    --gradient-paper: linear-gradient(145deg, #fefcf8 0%, #faf8f3 100%);
    
    /* 纸质纹理 */
    --texture-pattern: 
        radial-gradient(circle at 1px 1px, rgba(74, 111, 165, 0.15) 1px, transparent 0),
        radial-gradient(circle at 3px 3px, rgba(74, 111, 165, 0.08) 1px, transparent 0);
    --texture-size: 4px 4px;
    
    /* 边框圆角 */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* 过渡动画 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置和基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-main);
    background-image: var(--texture-pattern);
    background-size: var(--texture-size);
    overflow-x: hidden;
    position: relative;
    padding-top: 90px; /* 为固定导航栏预留空间 */
}

/* 为body添加和纸纹理效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(74, 111, 165, 0.02) 0%, 
        rgba(107, 139, 199, 0.01) 50%, 
        rgba(154, 180, 189, 0.005) 100%);
    pointer-events: none;
    z-index: -1;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

/* 段落和文本 */
p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 按钮样式 - 和纸风格 */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    cursor: pointer;
    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:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: var(--bg-paper);
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

/* 区块样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-primary);
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    text-align: center;
}

/* 卡片样式 - 和纸风格 */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-paper);
    transition: var(--transition);
    overflow: hidden;
    background: var(--bg-paper);
    position: relative;
}

/* 为卡片添加和纸纹理 */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--texture-pattern);
    background-size: var(--texture-size);
    opacity: 0.3;
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.card:hover::after {
    opacity: 1;
}

/* Hero区域样式 - 和纸主题 */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-paper);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--texture-pattern);
    background-size: var(--texture-size);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title .company-name {
    display: block;
    font-size: 3.5rem;
    line-height: 1.1;
}

.hero-title .company-type {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
}

/* 服务卡片样式 */
.service-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
}

/* 产品卡片样式 */
.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 新闻卡片样式 */
.news-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.news-date {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--primary-dark);
}

/* CTA区域样式 */
.cta-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-title .company-name {
        font-size: 3rem;
    }
    
    .hero-title .company-type {
        font-size: 1.8rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title .company-name {
        font-size: 2.5rem;
    }
    
    .hero-title .company-type {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-title .company-name {
        font-size: 2rem;
    }
    
    .hero-title .company-type {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .news-card {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .cta-text {
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-title .company-name {
        font-size: 1.75rem;
    }
    
    .hero-title .company-type {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card,
    .news-card {
        padding: 1.25rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* AOS动画覆盖 */
[data-aos] {
    transition-duration: 0.8s;
}

/* 可访问性改进 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #e9ecef;
        --text-secondary: #adb5bd;
        --text-muted: #6c757d;
        --border-color: #343a40;
        --secondary-color: #212529;
    }
    
    body {
        background-color: #1a1a1a;
        color: var(--text-primary);
    }
    
    .card,
    .service-card,
    .product-card,
    .news-card {
        background-color: #2d3748;
        border-color: var(--border-color);
    }
} 