/* 基础样式 /www/wwwroot/yian/css/style.css*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #D6D6D6;
    color: #e6e6e6;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #4dccbd;
    transition: color 0.3s;
}

a:hover {
    color: #6decdb;
}

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

/* 头部样式 */
header {
    background-color: #16213e;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #4dccbd;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a.active, nav ul li a:hover {
    background-color: #4dccbd;
    color: #16213e;
}

/* 主要内容区样式 */
main {
    padding: 30px 0;
    min-height: calc(100vh - 140px);
}

/* 首页样式 */
.hero {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border-radius: 10px;
}

.hero:hover {
    background-color: #05d167;
    color: #05d167;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #4dccbd;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 20px;
}
/* 简洁版响应式按钮容器 */
.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.button-container .btn-large {
    flex: 1; /* 平均分配空间 */
    min-width: 200px; /* 最小宽度 */
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .button-container .btn-large {
        flex: 0 1 100%; /* 每个按钮单独一行 */
        max-width: 280px;
    }
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.feature-card {
    flex: 0 0 30%;
    background-color: #0f3460;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: #4dccbd;
    margin-bottom: 10px;
}

/* 服务器列表样式 */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #0f3460;
    border-bottom: 2px solid #4dccbd;
    padding-bottom: 10px;
}

.servers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.server-card {
    background-color: #0f3460;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.server-card.more-card {
    background: linear-gradient(135deg, #4dccbd 0%, #6decdb 100%);
    color: #16213e;
}

.server-card.more-card .server-name {
    color: #16213e;
}

.server-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #4dccbd;
}

.server-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #b8b8b8;
}

.account-count {
    background-color: #4dccbd;
    color: #16213e;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

/* 账号详情顶部信息 */
.account-header {
    background-color: #0f3460;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.account-info {
    flex: 1;
}

.account-title {
    font-size: 2rem;
    color: #4dccbd;
    margin-bottom: 15px;
}

.account-price {
    font-size: 1.8rem;
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 15px;
}

.account-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #2a4a6e;
}

.detail-label {
    color: #b8b8b8;
}

.detail-value {
    font-weight: bold;
}

.account-description {
    background-color: #1a4a7a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.account-contact {
    width: 250px;
    background-color: #1a4a7a;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-left: 20px;
}

.qrcode {
    width: 150px;
    height: 150px;
    background-color: #fff;
    margin: 0 auto 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.9rem;
    overflow: hidden;
}

.qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-placeholder {
    color: #6c757d;
    text-align: center;
    padding: 20px;
}

/* 标签页样式 */
.tabs {
    background-color: #0f3460;
    border-radius: 10px;
    overflow: hidden;
}

.tab-headers {
    display: flex;
    background-color: #16213e;
    overflow-x: auto;
}

.tab-header {
    padding: 15px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-header.active {
    border-bottom-color: #4dccbd;
    color: #4dccbd;
    font-weight: bold;
}

.tab-content {
    padding: 25px;
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}
.tab-image-container {
    margin-top: 15px;
    text-align: center;
}
.tab-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
/* 确保子标签内容正确隐藏和显示 */
.sub-tab-pane {
    display: none;
}

.sub-tab-pane.active {
    display: block;
}

/* 宝宝标签页占位符样式 */
.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #2a4a6e;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #b8b8b8;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.image-placeholder:hover {
    background-color: #3a5a7e;
}
/* 账号列表样式 */
.account-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-item {
    background-color: #0f3460;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    cursor: pointer;
}

.account-item:hover {
    background-color: #1a4a7a;
}

.account-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.account-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #b8b8b8;
}

.account-price {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.1rem;
}
/* 子标签样式 */
.sub-tabs {
    margin-bottom: 20px;
}

.sub-tab-headers {
    display: flex;
    background-color: #1a4a7a;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.sub-tab-header {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
}

.sub-tab-header.active {
    background-color: #4dccbd;
    color: #16213e;
    font-weight: bold;
}

/* 底部样式 */
footer {
    background-color: #16213e;
    padding: 20px 0;
    text-align: center;
    color: #b8b8b8;
    font-size: 0.9rem;
}

/* 通用样式 */
.btn {
    display: inline-block;
    background-color: #4dccbd;
    color: #16213e;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
    font-size: 1rem;
}

.btn:hover {
    background-color: #6decdb;
}

.btn-large {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* 返回按钮样式 */
.back-btn {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background-color: #0F3460;
    color: #4dccbd;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
    background-color: #1A4A7A;
    color: #4dccbd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.back-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.error {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #ff6b6b;
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #4dccbd;
}

/* 订单编号特殊样式 */
.order-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #4dccbd;
    background: rgba(77, 204, 189, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* 管理界面预留样式 */
.admin-only {
    display: none;
}

.admin-logged-in .admin-only {
    display: block;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4dccbd;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #2a4a6e;
    border-radius: 4px;
    background: #0f3460;
    color: #e6e6e6;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #4dccbd;
}
/* 响应式设计 */
@media (max-width: 768px) {   
    .button-container {/* 小屏自动换行 */
        justify-content: center;
    }
    
    .button-container .btn-large {
        flex: 0 1 calc(50% - 15px); /* 每行两个按钮 */
    }
    .features {
        flex-direction: column;
    }
    
    .feature-card {
        flex: 0 0 100%;
    }
    
    .servers {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .account-header {
        flex-direction: column;
    }
    
    .account-contact {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
    
    .tab-headers {
        flex-wrap: wrap;
    }
    
    .tab-header {
        padding: 10px 15px;
    }
}
/* 后台管理主容器 - 新增 */
.admin-main-container {
    width: 100%;
    padding: 0;
    margin: 0;
    max-width: 100%;
}

/* 后台管理布局 */
.admin-container {
    display: flex;
    min-height: calc(100vh - 140px);
    width: 100%;
    gap: 0; /* 移除flex项之间的间隙 */
}

.admin-sidebar {
    width: 200px;
    background-color: #16213e;
    padding: 20px 0;
    border-radius: 10px 0 0 10px; /* 只在左侧设置圆角 */
}

.admin-content {
    flex: 1;
    padding: 20px;
    background-color: #0f3460;
    border-radius: 0 10px 10px 0; /* 只在右侧设置圆角 */
    margin-left: 0; /* 确保没有左边距 */
}
/* 服务器管理样式 */
.server-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.server-stat-card {
    background-color: #1a4a7a;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.server-stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4dccbd;
    margin-bottom: 5px;
}

.server-stat-label {
    color: #b8b8b8;
    font-size: 0.9rem;
}

.server-details {
    background-color: #1a4a7a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.server-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #2a4a6e;
}

.server-detail-label {
    color: #b8b8b8;
    font-weight: bold;
}

.server-detail-value {
    color: #e6e6e6;
}

.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

.beian-info {
    font-size: 14px;
}

.beian-link {
     color: #1890ff;
     text-decoration: none;
     transition: color 0.3s;
}

.beian-link:hover {
   color: #096dd9;
   text-decoration: underline;
}

.contact-info {
   font-size: 14px;
   color: #666;
}

.warning {
      font-size: 14px;
      color: #ff4d4f;
}

.copyright {
    font-size: 14px;
    color: #95a5a6;
}

.footer-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            padding: 15px 0;
            border-top: 1px solid #eee;
}