/* General Styles */
body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, YakuHanJP, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    color: #333; /* Text color */
}

a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
}
a:hover {
    text-decoration: underline;
}

/* Header */
.container_header {
    background-color: #ffffff;
    border-bottom: 1px solid #edf2f7;
    padding: 10px 0;
}

.header {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* Logo 优化 */
.header .logo img {
    height: 60px; /* 缩小了高度，避免撑开太多空间 */
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s;
}
.header .logo img:hover { opacity: 0.8; }

/* 标题组优化 */
.title-wrapper {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
}

.main-title a {
    font-size: 22px;
    font-weight: 800;
    color: #2c3e50;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 4px;
}

/* --- 导航栏优化 --- */
.nav-wrapper {
    background-color: #666; /* 改为深色背景，更有金融网站的稳重感 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav li {
    position: relative;
}

.nav a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* 导航悬停效果：底部亮条 */
.nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #5dade2;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #5dade2;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::after {
    width: 100%;
}

/* 图标微调 */
.menu-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    filter: brightness(0) invert(1); /* 将图标图标转为白色以适应深色背景 */
}

/* --- 响应式优化 (手机版) --- */
@media (max-width: 768px) {
    .header {
        flex-direction: column; /* 纵向排列 */
        text-align: center;
        padding: 15px 10px;
    }
    
    .header .logo img {
        height: 50px; /* 手机端缩小 Logo */
        margin-right: 0;
        margin-bottom: 8px;
    }

    .title-wrapper {
        margin-left: 0; /* 居中 */
        align-items: center;
    }

    .main-title a {
        font-size: 18px; /* 稍微缩小主标题 */
    }

    /* 修复：显示副标题并优化手机端样式 */
    .subtitle {
        display: block; /* 确保显示 */
        font-size: 11px; /* 缩小字号 */
        line-height: 1.4;
        color: #888;
        margin-top: 5px;
        max-width: 90%; /* 防止文字贴边 */
        word-break: break-all; /* 确保长句换行 */
    }

    .nav-container {
        padding: 0;
        overflow-x: auto; /* 允许导航横向滑动 */
        -webkit-overflow-scrolling: touch;
    }

    .nav {
        flex-wrap: nowrap;
        padding: 0 10px;
    }

    .nav li {
        flex: 0 0 auto;
    }

    .nav a {
        padding: 12px 12px;
        font-size: 13px;
    }
    
    /* 隐藏图标在手机端可以节省空间，如果需要显示请删掉下面这行 */
    .menu-icon { width: 16px; height: 16px; }
}

/* Table Styles */
/* 容器美化，建议将 table 包裹在一个 div 中以支持圆角剪裁 */
/* 外层容器，增加柔和阴影 */
/* 容器：增加圆角和更柔和的投影 */
.table-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px;
    border: 1px solid #e0e4e8; /* 增加细边框提升精致感 */
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    /* 使用更具可读性的日文字体族 */
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* 表头：改用深蓝/藏青渐变，更具权威感 */
th {
    background: linear-gradient(to right, #2c3e50, #4b6cb7);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
}

/* 单元格：减小间距，增加对齐美感 */
td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 14px;
}

/* 第一列：移除过粗的侧边，改为精致的强调色 */
td:first-child {
    border-left: 4px solid #4b6cb7;
    font-weight: bold;
    color: #2c3e50;
    background-color: #fafbfc; /* 第一列背景微显色 */
}

/* 斑马纹：使用更淡的冷灰色 */
tr:nth-child(even) {
    background-color: #fcfdfe;
}

/* 悬停效果：去掉缩放（金融表缩放会影响阅读线），改用整行高亮 */
tr:hover {
    background-color: #f1f5ff !important;
    transition: background-color 0.2s ease;
}

/* 股票特有：涨跌幅颜色 (日本市场通常：涨红 跌绿/蓝) */
.up { color: #eb4444; font-weight: bold; }   /* 涨：红 */
.down { color: #008d36; font-weight: bold; } /* 跌：绿 */

/* 状态标签：扁平化设计 */
.status {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
}

.status-active { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.status-pending { background: #fff3e0; color: #ef6c00; border: 1px solid #ffe0b2; }
/* Detail Layout */
.container_detail {
    display: flex;
    max-width: 1250px;
    margin: auto;
    gap: 10px;
}

.left {
    width: 840px;
    padding: 5px;
    box-sizing: border-box;
}

.right {
    width: 410px;
    padding: 5px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container_detail {
        flex-direction: column;
    }

    .left, .right {
        width: 100%;
    }
}

/* Search Form */
.form-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}
.form-quote {
    max-width: 1250px;
    margin: 5px auto;
    display: flex;
    gap: 10px;
     padding: 10px;
}
.form-container input {
    max-width: 200px;
    flex: 1;
    padding: 5px;
    font-size: 16px;
    border: 1px solid #666;
}

.form-container button {
    padding: 5px;
    font-size: 16px;
    cursor: pointer;
    background-color: #f7f7f7;
    color: #333;
    border: 1px solid #666;
    width: 100%;
    max-width: 300px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
}

/* Pagination */
.pagination1 {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination1 a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #0073aa;
    color: #0073aa;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination1 a:hover {
    background-color: #0073aa;
    color: white;
}

.pagination1 strong {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    color: #fff;
    background-color: #333;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination2 strong {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    color: #000;
    background-color: #fff;
    border-radius: 5px;
}

/* Articles */
.articles-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 5px;
    background: #fff;
    border-radius: 5px;
}

.article {
    margin-bottom: 5px;
    padding: 10px;
    border-bottom: 2px solid #ddd;
}

.article:last-child {
    border-bottom: none;
}

.article1 {
    padding: 5px;
}

h4 {
    color: #007BFF;
    margin: 0 0 5px;
}

.content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.date {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}

/* Type Section */
.type {
    max-width: 1250px;
    margin: auto;
    padding: 5px;
}

/* Flex Layout */
.container_1 {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.left_1 {
    width: 40%;
    display: flex;
    justify-content: left;
    padding: 20px;
    box-sizing: border-box;
}

.right_1 {
    width: 60%;
    display: flex;
    justify-content: right;
    padding: 20px;
    box-sizing: border-box;
}


         .articles-container-yx {
            width: 100%;
            
        }

        .article1-yx {
            display: flex;
            align-items: flex-start;
            border-bottom: 1px solid #ddd;
            margin-bottom: 5px; /* 减少行距 */

}

        .thumbnail-s {
            width: 100px; /* 设置缩略图的宽度 */
            height: 100px; /* 设置缩略图的高度，使其成为正方形 */
            overflow: hidden;
            margin-right: 5px; /* 减少图片和内容的距离 */
        }

        .thumbnail-s img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 确保图片填充整个正方形区域 */
            border-radius: 0; /* 去掉圆角 */
        }

        .content-yx {
            flex: 1;
        }

        .content-yx strong a {
            text-decoration: none;
            color:#333;
        }
.content-yx strong a:hover {
            text-decoration: underline;
            color:#2086EF;
        }
        .content-yx .date {
            color: #666;
            font-size: 0.9em;
            margin-top: 5px;
        }

        .more-link {
            text-align: right;
            padding-top: 5px;
        }

        .more-link a {
            text-decoration: none;
            color: #3f4be7; /* 链接颜色 */
        }

        .more-link a:hover {
            text-decoration: underline; /* 鼠标悬停时显示下划线 */
        }

.icon {
    display: flex; /* 启用 Flexbox */
    align-items: center; /* 垂直居中对齐 */
    gap: 5px; /* 图标和文本之间的间距 */
    border-bottom: 2px solid #333;
    padding: 5px; /* 减少文章底部间距 */
    margin: 5px 0;
    background: #f7f7f7;
}

.icon1 {
    display: flex; /* 启用 Flexbox */
    align-items: center; /* 垂直居中对齐 */
    gap: 5px; /* 图标和文本之间的间距 */
  justify-content: center;

}

.icon2 {
    display: flex; /* 启用 Flexbox */
    align-items: center; /* 垂直居中对齐 */
    gap: 5px; /* 图标和文本之间的间距 */
   
    padding: 5px; /* 减少文章底部间距 */
    margin: 5px 0;

}
.more {
    display: flex; /* 启用 Flexbox */
    align-items: center; /* 垂直居中对齐 */
    justify-content: flex-end; /* 将内容对齐到右侧 */
    gap: 0px; /* 图标和文本之间的间距 */
    color:#2086EF;
    margin: 5px;
}
.stock {
    display: inline; 
    vertical-align: middle;
}