/* --- 1. Global Settings & Variables --- */
:root {
    --text-dark: #4a4a4a;
    --text-light: #FFFFFF;
    --accent-blue: #2d87fc;
    --bg-main: #FFFFFF;
    --bg-light-gray: #f7f7f7;
    --border-color: #e0e0e0;
    --font-primary: 'Noto Sans JP', sans-serif;
}

/* --- 2. Base & Reset Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* 为固定页脚留出空间 */
    padding-bottom: 50px; 
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-blue);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 50px;
}

/* --- 3. Header & Navigation --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
}
.logo a:hover {
    color: var(--text-dark);
}

.main-nav a {
    margin: 0 20px;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 5px;
    opacity: 0.7;
}
.main-nav a.active, .main-nav a:hover {
    opacity: 1;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
}

/* --- 4. Hero Section (Homepage only) --- */
.hero {
    background-color: var(--accent-blue);
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

.hero-text {
    background-color: transparent;
    padding: 0;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* --- 5. Content Sections --- */
section {
    margin-bottom: 60px;
}
.about-section p, .future-content p {
    max-width: 800px;
    margin: 0 auto 1.5em auto;
    text-align: justify;
}
.product-list {
    list-style-type: none;
    text-align: center;
    margin-bottom: 30px;
}
.product-list li {
    display: inline-block;
    background-color: var(--bg-light-gray);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}
.product-origin-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
}

/* --- Other sections remain the same --- */
/* Showcase Grid, Profile Table, Contact Form ... */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    /* 1. 设置为Flexbox布局，让内部元素可以被灵活控制 */
    display: flex;
    flex-direction: column; /* 内部元素垂直排列 */
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

}
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0; /* 防止图片在flex布局中被意外压缩 */
}
/* 关键新增: 为第四个区块的“模拟图片区”设置样式 */
.card-img-placeholder {
    width: 100%;
    height: 220px; /* 与真实图片高度完全一致 */
    background-color: var(--bg-light-gray); /* 给一个淡淡的背景色 */
    flex-shrink: 0; /*同样防止被压缩*/
}
.card-content {
    padding: 20px;
    flex-grow: 1;
}
.card-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.page-header {
    text-align: center;
    margin-bottom: 50px;
}
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}
.profile-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}
.profile-card table {
    width: 100%;
    border-collapse: collapse;
}
.profile-card th, .profile-card td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.profile-card th {
    font-weight: 700;
    width: 30%;
    background-color: var(--bg-light-gray);
}
.profile-card tr:last-child th,
.profile-card tr:last-child td {
    border-bottom: none;
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
}
.cta-button {
    display: inline-block;
    border: none;
    background-color: var(--accent-blue);
    color: #fff;
    padding: 14px 35px;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
    background-color: #2790e0;
    transform: translateY(-2px);
}

/* --- 6. Footer (Fixed Footer Implementation) --- */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    
    padding: 10px 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light-gray);
    color: #777;
    font-size: 0.9rem;
}

/* --- 7. Responsive Design --- */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* 增加手机端的底部padding以容纳多行页脚 */
    }
    .main-header {
        flex-direction: column;
        gap: 15px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .profile-card th, .profile-card td {
        display: block;
        width: 100%;
    }
     .profile-card th {
        border-bottom: none;
        padding-bottom: 5px;
     }
}

/* --- Footer Additions --- */
.main-footer .copyright {
    margin-bottom: 8px;
}

.main-footer .powered-by {
    font-size: 0.666rem;
}

/* --- 8. Success Modal Styles --- */
.modal-overlay {
    position: fixed; /* 固定在屏幕上 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* 确保在最上层 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.is-visible .modal-content {
    transform: scale(1);
}

.modal-content h4 {
    font-size: 1.8rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #333;
}

.page-content a {
    color: var(--accent-blue); /* 使用我们的品牌蓝作为链接颜色 */
 #   text-decoration: underline; /* 添加下划线，这是最传统的、最明确的可点击标识 */
 #   text-decoration-color: rgba(45, 158, 252, 0.4); /* 让下划线颜色浅一些，更精致 */
 #   text-underline-offset: 4px; /* 让下划线和文字之间有一点距离 */
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.page-content a:hover {
    color: #2790e0; /* 悬停时颜色加深一点 */
#    text-decoration-color: rgba(39, 144, 224, 0.8); /* 悬停时下划线颜色也加深 */
}
