/* 易斋可转债应用样式表 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 主容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
header {
    margin-bottom: 20px;
}

.title-text {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.subtitle-text {
    text-align: center;
    color: #34495e;
    font-size: 16px;
    margin-bottom: 20px;
}

/* 用户信息区域 */
.user-info-container {
    text-align: right;
    margin-bottom: 10px;
    padding: 8px;
}

.user-info {
    background-color: #e8f4fc;
    border-radius: 5px;
    padding: 8px 12px;
    display: inline-block;
}

/* 登录表单样式 */
.login-form {
    max-width: 400px;
    margin: 0 auto 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.login-button {
    width: 100%;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: #2980b9;
}

/* 消息样式 */
.message-container {
    margin: 15px 0;
}

.error-message {
    color: #e74c3c;
    padding: 8px;
    background-color: #fadbd8;
    border-radius: 4px;
    margin-top: 10px;
}

.success-message {
    color: #27ae60;
    padding: 8px;
    background-color: #d4efdf;
    border-radius: 4px;
    margin-top: 10px;
}

/* 数据区域样式 */
.data-section {
    margin: 20px 0;
    text-align: center;
}

.refresh-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.refresh-button:hover {
    background-color: #2980b9;
}

/* 表格区域 */
.table-section {
    margin-top: 20px;
    overflow-x: auto;
}

/* 表格容器样式 */
.table-container {
    margin-bottom: 30px;
}

.table-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 2px solid #3498db;
}

/* 无数据提示样式 */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #bdc3c7;
}

/* 表格样式 */
.custom-table {
    width: 100%;
    margin: 10px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.custom-table-content {
    width: 100%;
}

.table-header {
    display: flex;
    background-color: #3498db;
    color: white;
    font-weight: bold;
    padding: 10px;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #dddddd;
    padding: 8px 10px;
}

.table-row:nth-of-type(even) {
    background-color: #f3f3f3;
}

.table-row:last-of-type {
    border-bottom: 2px solid #3498db;
}

.table-row:hover {
    background-color: #e6f7ff;
}

.table-cell {
    flex: 1;
    padding: 0 8px;
    overflow: hidden;
    /*text-overflow: ellipsis;*/
    white-space: nowrap;
}

/* 易斋网水印样式 - 多重平铺 */
.ezhai-watermark {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
}
.ezhai-watermark::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    opacity: 1;
    pointer-events: none;
    background-repeat: repeat;
    /* 使用SVG水印，调整viewBox和text参数，保证“易斋网”完整显示 */
    background-image: url('data:image/svg+xml;utf8,<svg width="260" height="120" viewBox="0 0 260 120" xmlns="http://www.w3.org/2000/svg"><text x="10" y="85" font-size="48" font-family="Arial" fill="rgba(180,180,180,0.13)" transform="rotate(-30 120 60)">易斋网</text></svg>');
    background-size: 260px 120px;
    background-position: 0 0;
}

/* 北京时间显示区域 */
#beijing-time {
    margin-top: 1px;
    text-align: right;
    font-size: 15px;
    color: #888;
    font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
    letter-spacing: 1px;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title-text {
        font-size: 24px;
    }
    
    .subtitle-text {
        font-size: 14px;
    }
    
    .table-cell {
        font-size: 11px;
        padding: 0 3px;
    }
    
    .table-title {
        font-size: 18px;
    }
    
    .table-container {
        margin-bottom: 20px;
    }
    
    .login-form {
        padding: 15px;
    }
    
    .ezhai-watermark-text {
        font-size: 28px;
    }
    #beijing-time {
        font-size: 12px;
    }
}

/* 超小屏幕样式 */
@media screen and (max-width: 480px) {
    .title-text {
        font-size: 20px;
    }
    
    .subtitle-text {
        font-size: 12px;
    }
    
    .table-cell {
        font-size: 10px;
        padding: 0 1px;
    }
    
    .table-title {
        font-size: 16px;
    }
    
    .table-container {
        margin-bottom: 15px;
    }
}
