* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --light-bg: #fff0d5;
    --card-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #777777;
    --border-color: #e0e0e0;
    --accent-color: #ffd166;
    --sale-color: #e74c3c;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(135deg, rgba(255,240,213,0.8) 0%, rgba(255,240,213,0.9) 100%), 
                    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23fff0d5" opacity="0.1" width="10" height="10"/></svg>');
    background-size: 10px 10px;
}

/* 头部导航 */
.header {
    background-color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo i {
    margin-right: 8px;
    font-size: 1.5em;
}

.logo:hover {
    color: var(--primary-color);
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 5px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 107, 107, 0.1);
}

/* 主内容区 */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 40px 30px;
    position: relative;
    z-index: 1;
}

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

.auth-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f9f9f9;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    background: white;
}

.form-control::placeholder {
    color: #bbb;
}

.verify-group {
    display: flex;
    gap: 15px;
}

.verify-code {
    flex: 1;
}

.verify-img {
    flex: 0 0 120px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.verify-img:hover {
    background: #e0e0e0;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(255, 107, 107, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.decoration {
    position: absolute;
    z-index: 0;
}

.decoration-1 {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
}

.decoration-2 {
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
}

.decoration-3 {
    top: 30%;
    left: 10%;
    width: 50px;
    height: 50px;
    background: rgba(255, 209, 102, 0.2);
    border-radius: 50%;
}

.decoration-4 {
    bottom: 40%;
    right: 15%;
    width: 30px;
    height: 30px;
    background: rgba(78, 205, 196, 0.2);
    border-radius: 50%;
}

/* 页脚 */
.footer {
    background: white;
    padding: 30px 0 10px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s;
    display: block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .verify-group {
        flex-direction: column;
    }
    
    .verify-img {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-header h2 {
        font-size: 1.7rem;
    }
    
    .form-control {
        padding: 12px 15px;
    }
}

/* 注册模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-60px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
}