/* 设置网页的基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden; /* 禁用滚动条 */
}

/* 背景图片全屏显示 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://dailybing.com/api/v1') no-repeat center center fixed;
    background-size: cover;
    z-index: -1;
    filter: brightness(0.7); /* 默认将背景稍微变暗，避免文字遮挡 */
}

/* 顶部提示样式 */
.top-message {
    position: fixed;
    top: 10px; /* 距离顶部的间距 */
    left: 50%; /* 水平居中 */
    transform: translateX(-50%); /* 确保完全居中 */
    background-color: rgba(0, 255, 150, 0.6); /* 半透明青绿色背景 */
    color: white; /* 白色文字 */
    text-align: center;
    padding: 4px 12px; /* 减少内边距，让边框与文字更贴合 */
    font-size: 14px; /* 调整字体大小，减小整体占用空间 */
    font-weight: bold;
    border-radius: 3px; /* 圆角更小，紧凑效果 */
    z-index: 1;
    border: 3px solid rgba(0, 255, 150, 1); /* 青绿色边框 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);  /* 增加阴影效果 */
    transition: background-color 0.3s ease, transform 0.3s ease; /* 平滑过渡效果 */
}

/* 鼠标悬停时效果 */
.top-message:hover {
    background-color: rgba(0, 200, 120, 1); /* 鼠标悬停时背景颜色变深 */
    transform: translateX(-50%) scale(1.05); /* 保持水平居中，同时稍微放大 */
}

/* 主容器，居中显示内容 */
.main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* 确保内容至少占满视口 */
    text-align: center;
    color: white;
    padding-bottom: 20px;
}

/* 半透明的PNG图像 */
.transparent-image {
    width: 60%; /* 根据需要调整图像宽度 */
    max-width: 500px;
    opacity: 0.8; /* 设置半透明效果 */
    margin-bottom: 30px; /* 图像下方的间距 */
}

/* 信息文本样式 */
.info {
    font-size: 16px;
    margin-bottom: 20px; /* 保证信息和备案号之间有间距 */
}

.info p {
    margin: 10px 0;
}

.info span {
    font-weight: bold;
}

/* 为文字加阴影 */
.info p, .info a {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 黑色阴影 */
    color: white; /* 默认文字为白色 */
}

/* 链接样式 */
.info a {
    color: #FF9900; /* 设置备案号链接为橙色 */
    text-decoration: none;
    font-weight: bold;
}

/* 服务范围的字体大小调整 */
.info .service-scope {
    font-size: 14px; /* 默认字体大小 */
    margin-top: 10px;
}

/* 服务范围中的法规链接样式 */
.law-link {
    color: #FF9900;
    text-decoration: underline;
    cursor: pointer;
}

/* 服务声明样式 */
.service-statement {
    background-color: rgba(255, 0, 0, 0.8); /* 红色背景，半透明 */
    color: white;
    padding: 20px;
    font-size: 18px;  /* 增大字体 */
    margin-top: 30px;
    border-radius: 10px;
    width: 80%;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);  /* 增加阴影效果 */
    border: 3px solid red;  /* 红色边框 */
    transition: all 0.3s ease;
}

/* 服务声明悬浮效果 */
.service-statement:hover {
    background-color: rgba(255, 0, 0, 1);  /* 鼠标悬停时背景变深 */
    transform: scale(1.05);  /* 鼠标悬停时稍微放大 */
}

/* 底部阿里云支持信息 */
.aliyun-support {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.aliyun-support a {
    color: #FF9900;
    text-decoration: none;
    transition: color 0.3s ease;
}

.aliyun-support a:hover {
    color: #FF6600;
    text-decoration: underline;
}

/* 响应式调整样式 */
@media (max-width: 768px) {
    .transparent-image {
        width: 80%;
    }

    .info {
        font-size: 14px;
    }

    .info .service-scope {
        font-size: 12px;
    }

    .service-statement {
        font-size: 16px; /* 在中等屏幕下，适当减小字体 */
        width: 90%;
    }
    
    .aliyun-support {
        font-size: 11px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    /* 更小屏幕时的调整 */
    .transparent-image {
        width: 90%;
    }

    .info {
        font-size: 12px;
    }

    .info .service-scope {
        font-size: 11px; /* 更小的字体大小 */
    }

    .service-statement {
        font-size: 14px;  /* 在小屏幕下，适当减小字体 */
        width: 95%;
    }
    
    .aliyun-support {
        font-size: 10px;
        bottom: 8px;
    }
}

/* 管理员登录表单样式 */
.admin-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.btn:hover {
    background: #45a049;
}

.btn-danger {
    background: #f44336;
}

.btn-danger:hover {
    background: #da190b;
}

.domain-list {
    margin: 20px 0;
}

.domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    margin-bottom: 5px;
    border-radius: 5px;
}

.delete-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #da190b;
}

.logout-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.error-message {
    background: #f44336;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}
/* 在现有的style.css末尾添加以下样式 */

/* 管理员后台样式 */
body.admin-page {
    overflow: auto !important;
}

.logout-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    text-align: center;
}

.error-message {
    background: #f44336;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    text-align: center;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    font-weight: bold;
}

.btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: #f44336;
}

.btn-danger:hover {
    background: #da190b;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}