/* css/style.css - 紫色主题 */
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 字体定义 */
body {
    font-family: 'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* 恢复浅灰色背景 */
}

/* 英语字体定义 */
body.english {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* 语言切换器 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 25px;
    padding: 8px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* 恢复紫色渐变 */
    color: white;
}

.lang-btn:hover:not(.active) {
    background: #f5f3ff; /* 浅紫色悬停效果 */
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.logo span {
    color: #667eea; /* 紫色品牌色 */
}

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

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #667eea; /* 紫色悬停色 */
    background: #f5f3ff; /* 浅紫色背景 */
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* 恢复紫色渐变 */
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1563013544-824ae1b704d3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    opacity: 0.1;
    background-size: cover;
    background-position: center;
}

/* 主要内容区域 */
.section {
    padding: 80px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2); /* 恢复紫色渐变 */
    border-radius: 2px;
}

/* 使命与价值观 */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.mission-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.mission-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: #667eea; /* 紫色图标 */
}

.mission-card h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* 业务介绍 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2); /* 恢复紫色渐变 */
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* 商品展示 */
.products-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
}

.product-card {
    min-width: 280px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    background: #f8f9fa; /* 恢复浅灰色背景 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-price {
    color: #667eea; /* 紫色价格 */
    font-weight: bold;
    font-size: 1.2em;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
}

/* 公司概要页特定样式 - 优化布局 */
.header-images {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0; /* 增加一些内边距 */
    text-align: center;
}

.phone-images {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px; /* 增加间距 */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.phone-image {
    width: 150px; /* 稍微增大 */
    height: 250px; /* 稍微增高 */
    background: white;
    border-radius: 25px; /* 圆角更大 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); /* 阴影更明显 */
    transition: all 0.3s ease;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2); /* 添加边框 */
}

.phone-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.phone-image:hover {
    transform: translateY(-15px) scale(1.05); /* 悬停效果更明显 */
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.phone-image:hover img {
    transform: scale(1.1); /* 图片放大效果 */
}

.phone-image:nth-child(1) { background: linear-gradient(45deg, #ff6b6b, #ee5a24); }
.phone-image:nth-child(2) { background: linear-gradient(45deg, #4ecdc4, #44a08d); }
.phone-image:nth-child(3) { background: linear-gradient(45deg, #45b7d1, #96c93d); }
.phone-image:nth-child(4) { background: linear-gradient(45deg, #f093fb, #f5576c); }

.company-info {
    background: white;
    border-radius: 20px; /* 圆角更大 */
    padding: 40px; /* 增加内边距 */
    box-shadow: 0 10px 40px rgba(0,0,0,0.12); /* 阴影更明显 */
    text-align: center;
    max-width: 1000px; /* 最大宽度增加 */
    margin: 40px auto; /* 上下边距增加 */
}

.company-name {
    font-size: 2.8em; /* 字体更大 */
    color: #2c3e50;
    margin-bottom: 30px; /* 底部边距增加 */
    font-weight: bold;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: 1px; /* 字母间距 */
}

.company-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px; /* 下划线更长 */
    height: 4px; /* 下划线更粗 */
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* 优化信息网格布局 - 改为每行两个 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 每行两个 */
    gap: 40px; /* 间距增加 */
    margin: 40px 0; /* 上下边距增加 */
}

.info-item {
    background: linear-gradient(135deg, #f8f9fa, #f0f2f5); /* 渐变背景 */
    padding: 30px; /* 内边距增加 */
    border-radius: 15px; /* 圆角更大 */
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1); /* 添加边框 */
    min-height: 220px; /* 设置最小高度 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15); /* 紫色阴影 */
    border-color: rgba(102, 126, 234, 0.3); /* 悬停时边框颜色加深 */
}

.info-title {
    font-size: 1.4em; /* 标题字体更大 */
    color: #667eea;
    margin-bottom: 20px; /* 底部边距增加 */
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px; /* 图标与文字间距 */
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2); /* 标题下划线 */
}

.info-content {
    font-size: 1.15em; /* 内容字体稍大 */
    line-height: 1.7; /* 行高增加 */
    color: #555;
    flex-grow: 1; /* 让内容区域填充可用空间 */
}

/* 针对特定信息项的特殊调整 */
.info-item:nth-child(1) .info-content,  /* 所在地 */
.info-item:nth-child(4) .info-content {  /* 営業所 */
    font-size: 1.2em; /* 地址信息字体稍大 */
    line-height: 1.8;
    white-space: nowrap; /* 尽量不换行 */
}

.info-item:nth-child(2) .info-content {  /* 設立 & 社長 */
    display: flex;
    flex-direction: column;
    gap: 15px; /* 设立和社长之间的间距 */
}

.info-item:nth-child(3) .info-content {  /* 事業内容 */
    line-height: 1.9; /* 行间距更大 */
}

/* CEO样式调整 */
.CEO {
    font-family: "HG行書体", Times, serif;
    font-size: 22pt; /* 字体稍大 */
    color: #2c3e50;
    margin-top: 5px;
}

/* 联系方式区域 */
.contact-method {
    margin-top: 40px; /* 上边距增加 */
    padding: 40px; /* 内边距增加 */
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px; /* 圆角更大 */
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.25); /* 添加阴影 */
}

.contact-title {
    font-size: 2em; /* 字体更大 */
    margin-bottom: 25px;
    font-weight: bold;
    letter-spacing: 1px;
}

.contact-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px; /* 间距增加 */
    margin-top: 20px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px 35px; /* 内边距增加 */
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 280px; /* 最小宽度 */
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.contact-item strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-right: 8px;
}

.contact-item br {
    margin-bottom: 8px;
    display: block;
    content: "";
}

/* 响应式设计 - 调整网格布局 */
@media (max-width: 1000px) {
    .info-grid {
        grid-template-columns: 1fr; /* 小于1000px时变为单列 */
        gap: 30px;
    }
    
    .company-info {
        padding: 30px;
        margin: 30px 20px;
    }
    
    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .contact-item {
        width: 100%;
        max-width: 400px;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .phone-images {
        gap: 20px;
    }
    
    .phone-image {
        width: 130px;
        height: 220px;
    }
    
    .company-name {
        font-size: 2.2em;
    }
    
    .info-item {
        padding: 25px;
        min-height: auto; /* 移动端取消最小高度 */
    }
    
    .info-title {
        font-size: 1.3em;
    }
    
    /* 移动端允许换行 */
    .info-item:nth-child(1) .info-content,
    .info-item:nth-child(4) .info-content {
        white-space: normal;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .header-images {
        padding: 30px 0;
    }
    
    .phone-images {
        gap: 15px;
    }
    
    .phone-image {
        width: 100px;
        height: 170px;
        border-radius: 20px;
    }
    
    .company-name {
        font-size: 1.8em;
    }
    
    .info-item {
        padding: 20px;
    }
    
    .contact-method {
        padding: 30px 20px;
    }
    
    .contact-item {
        padding: 20px 25px;
    }
}

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

.company-info {
    animation: fadeInUp 0.8s ease-out;
}

/* 为每个信息项添加延迟动画 */
.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }
.info-item:nth-child(4) { animation-delay: 0.4s; }

.company-name {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.company-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2); /* 恢复紫色渐变 */
    border-radius: 2px;
}

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

.info-item {
    background: #f8f9fa; /* 恢复浅灰色背景 */
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.info-title {
    font-size: 1.3em;
    color: #667eea; /* 紫色标题 */
    margin-bottom: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

.contact-method {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2); /* 恢复紫色渐变 */
    border-radius: 15px;
    color: white;
}

.contact-title {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.contact-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 10px;
}

.contact-item {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* CEO样式 */
.CEO {
    font-family: "HG行書体", Times, serif;
    font-size: 20pt;
}

body.english .CEO {
    font-family: "Times New Roman", Times, serif;
}

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

.animate {
    animation: fadeInUp 0.8s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .nav-links {
        display: none;
    }
    
    .mission-grid,
    .services-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-image {
        width: 100px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }
    
    .section {
        padding: 40px 20px;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .phone-image {
        width: 80px;
        height: 130px;
    }
    
    .phone-icon {
        font-size: 25px;
    }
    
    .company-name {
        font-size: 1.8em;
    }
}