/* 
 Theme Name:   智者乐水-新时代
 Theme URI:    https://www.hesmgm.cn
 Description:  工程安全管理的展示
 Author:       Jazcode
 Author URI:   http://www.hesmgm.cn
 Template:     astra
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* 视频区域样式 */
.video-section {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

#mainVideo {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

#mainVideo:hover {
    transform: scale(1.02);
}

/* 临时标题区域样式 */
.header-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.main-title {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

@keyframes titleGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 问候语区域样式 */
.greeting-section {
    position: relative;
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.greeting-text {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

/* 文字动画效果 */
.greeting-word, .greeting-separator {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 2px;
}

.greeting-word.animate, .greeting-separator.animate {
    animation: wordAppear 1s ease-out forwards;
}

@keyframes wordAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg) scale(0.5);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-10px) rotateX(45deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

/* 悬停效果 */
.greeting-word:hover {
    color: #ffd700;
    transform: scale(1.2) translateY(-5px) !important;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8) !important;
    transition: all 0.3s ease;
}

/* 装饰性粒子效果 */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffd700, #ffed4e);
    border-radius: 50%;
    animation: float var(--duration, 3s) ease-in-out infinite var(--delay, 0s);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.floating-particle:nth-child(1) {
    top: 20%;
    left: 10%;
}

.floating-particle:nth-child(2) {
    top: 60%;
    right: 15%;
}

.floating-particle:nth-child(3) {
    top: 30%;
    left: 80%;
}

.floating-particle:nth-child(4) {
    bottom: 20%;
    left: 20%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 1;
    }
}

/* 背景动画效果 */
.greeting-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .greeting-text {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .greeting-section {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .greeting-text {
        font-size: 1.5rem;
    }
    
    .greeting-word, .greeting-separator {
        margin: 0 1px;
    }
}

/* 额外的艺术效果 */
.greeting-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scaleX(0.5);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

/* 添加其他自定义样式 */

/* 用户注册登录界面样式 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 450px;
    width: 100%;
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.auth-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.admin-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.admin-btn:hover {
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #764ba2;
}

.admin-link a {
    color: #ff6b6b !important;
}

.admin-link a:hover {
    color: #ee5a24 !important;
}

.error-messages, .success-message {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.error-messages {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.success-message {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.password-strength {
    margin-top: 5px;
    font-size: 12px;
}

.strength-weak { color: #ff6b6b; }
.strength-medium { color: #ffa500; }
.strength-strong { color: #51cf66; }

/* 管理员界面样式 */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.admin-content {
    display: grid;
    gap: 30px;
}

.admin-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.admin-section h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.admin-section > p {
    color: #666;
    margin-bottom: 25px;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.users-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.users-table th,
.users-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.users-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.users-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.delete-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #ee5a24;
    transform: translateY(-1px);
}

.users-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 30px;
}

.users-stats p {
    margin: 0;
    color: #333;
}

.system-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.no-users {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-form-wrapper {
        margin: 10px;
        padding: 30px 20px;
    }
    
    .admin-container {
        padding: 10px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .users-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .system-info {
        grid-template-columns: 1fr;
    }
}

