/* DayZ-NG 网站统一样式表 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.3;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(152, 245, 249, 0.8);
    /* background-color: #ffffff; */
    padding: 1px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 100%;
    width: 99%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 2px;
}

.logo {
    text-decoration: none;
    display: block;
    width: 100%;
    margin-bottom: 14px;
}

.logo img {
    width: 100%;
    height: 280px;
    display: block;
}

.logo span {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    width: 100%;
}

.nav-menu li {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.nav-menu li a {
    color: #000;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 26px;
    font-weight: 700;
    font-family: 'STXinwei', 'KaiTi', 'LiSu', 'YouYuan', 'Microsoft YaHei', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    display: block;
}

.nav-menu li a:hover {
    color: #666;
}

.nav-menu li a.active {
    color: #ff0000;
}

/* 首页视频背景 */
.hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 48px;
    color: #ff6b35;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 20px;
    max-width: 800px;
    padding: 0 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 主内容区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    font-size: 36px;
    color: #F20A0A;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #F20A0A;
    padding-bottom: 15px;
}

.content-section {
    background-color: #F69697;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.content-section h2 {
    color: #FFDE59;
    margin-bottom: 20px;
    font-size: 24px;
}

.content-section p {
    margin-bottom: 18px;
    line-height: 1.8;
}

/* 图片网格布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background-color: #1a1a1a;
    aspect-ratio: 16/9;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.image-item:hover img {
    transform: scale(1.05);
}

/* 图片全屏遮罩层 */
.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
    padding: 40px;
    box-sizing: border-box;
}

.image-overlay.active {
    display: flex;
}

.image-overlay .overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    transition: transform 0.2s ease-in-out;
    transform-origin: center center;
}

.overlay-toolbar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.overlay-btn {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.2s;
}

.overlay-btn:hover {
    background-color: rgba(255, 107, 53, 0.8);
    transform: translateY(-1px);
}

.overlay-btn:active {
    transform: translateY(0);
}

/* 分享菜单样式 */
.share-container {
    position: relative;
}

.share-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    padding: 8px 0;
    z-index: 10000;
    animation: slideDown 0.2s ease-out;
}

.share-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.share-menu.active {
    display: block;
}

.share-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #000;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.share-item:last-child {
    border-bottom: none;
}

.share-item:hover {
    background-color: #f5f5f5;
    text-decoration: underline;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.facebook-icon {
    background-color: #1877f2;
}

.twitter-icon {
    background-color: #1da1f2;
}

.pinterest-icon {
    background-color: #bd081c;
}

.download-icon {
    background-color: #666;
}

.share-text {
    flex: 1;
    font-size: 14px;
    text-decoration: underline;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 支付二维码样式 */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.payment-item {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ddd;
}

.payment-item h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 18px;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.payment-tip {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .qr-code {
        width: 180px;
        height: 180px;
    }
}

/* 留言板样式 */
.message-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #3d3d3d;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 14px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #ff6b35;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #ff8c5a;
}

.submit-btn:active {
    transform: translateY(1px);
}

.message-list {
    margin-top: 20px;
}

.message-item {
    background-color: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.message-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3d3d3d;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.message-author {
    font-weight: bold;
    color: #ff6b35;
    font-size: 16px;
}

.message-type {
    padding: 4px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.message-time {
    color: #888;
    font-size: 14px;
}

.delete-btn {
    background-color: #ff4444;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background-color: #ff6666;
}

.message-target {
    margin-bottom: 10px;
    padding: 8px;
    background-color: rgba(255, 68, 68, 0.1);
    border-left: 3px solid #ff4444;
    color: #ffaaaa;
}

.message-content {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-contact {
    margin-bottom: 10px;
    color: #aaa;
    font-size: 14px;
}

.message-status {
    color: #888;
    font-size: 14px;
    font-style: italic;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

@media (max-width: 768px) {
    .message-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .delete-btn {
        align-self: flex-end;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.back-to-top:hover {
    background-color: #ff8c5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top.show {
    display: flex;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 列表样式 */
.content-list {
    list-style: none;
    padding-left: 0;
}

.content-list li {
    padding: 10px 0;
    border-bottom: 1px solid #3d3d3d;
}

.content-list li:last-child {
    border-bottom: none;
}

.content-list li a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s;
}

.content-list li a:hover {
    color: #ff8c5a;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #3d3d3d;
}

.data-table th {
    background-color: #ff6b35;
    color: #fff;
    font-weight: bold;
}

.data-table tr:hover {
    background-color: #3d3d3d;
}

/* 页脚样式 */
.footer {
    background-color: #1a1a1a;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #3d3d3d;
    margin-top: 50px;
}

.footer p {
    color: #888;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        overflow-x: auto;
    }
    
    .nav-menu {
        gap: 8px;
        font-size: 11px;
    }
    
    .nav-menu li a {
        padding: 5px 8px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo span {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .container {
        padding: 20px 15px;
    }
}
