/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

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

.nav-link {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link-primary {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-link-primary:hover {
    background: var(--primary-dark);
    color: white;
}

/* Hero Section */
.hero {
    padding: 160px 20px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
}

.notice-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 24px 32px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.notice-text {
    font-size: 32px;
    font-weight: 800;
    color: white;
    line-height: 1.4;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
}

.floating-item {
    position: absolute;
    font-size: 60px;
    transition: transform 0.3s ease-out;
}

.item-1 { top: 10%; left: 20%; }
.item-2 { top: 30%; right: 15%; }
.item-3 { bottom: 25%; left: 10%; }
.item-4 { bottom: 15%; right: 25%; }
.item-5 { top: 50%; left: 45%; }

/* Section */
.section {
    padding: 100px 20px;
}

.section-alt {
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

/* About Cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-lg);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
}

.tech-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 12px;
}

.tech-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tech-info p {
    font-size: 13px;
    color: var(--text-light);
}

/* Project List */
.project-list {
    max-width: 800px;
    margin: 0 auto;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
}

.project-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--border);
    min-width: 80px;
}

.project-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.project-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    text-align: center;
}

.footer-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.icp {
    font-size: 13px;
}

.icp a {
    color: var(--text-lighter);
    transition: color 0.2s;
}

.icp a:hover {
    color: var(--primary);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.login-container {
    display: flex;
    width: 1000px;
    max-width: 90%;
    min-height: 600px;
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px var(--shadow-lg);
}

.login-visual {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.visual-content {
    position: relative;
    height: 300px;
}

.visual-food {
    position: absolute;
    font-size: 50px;
    transition: transform 0.1s linear;
}

.food-1 { top: 0; left: 20%; }
.food-2 { top: 20%; right: 10%; }
.food-3 { top: 45%; left: 10%; }
.food-4 { top: 65%; right: 20%; }
.food-5 { top: 85%; left: 40%; }

.visual-text h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 12px;
}

.visual-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.login-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form-container {
    width: 100%;
    max-width: 360px;
}

.login-header {
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary);
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}

.login-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-lighter);
    font-size: 14px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.wechat-login-btn {
    width: 100%;
    padding: 16px;
    background: #07c160;
    color: white;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.wechat-login-btn:hover {
    background: #06ad56;
}

.wechat-icon {
    font-size: 20px;
}

.form-footer {
    text-align: center;
}

.form-footer p {
    font-size: 14px;
    color: var(--text-light);
}

.register-link {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}

.register-link:hover {
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }

    .notice-text {
        font-size: 24px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .login-container {
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        border-radius: 0;
    }

    .login-visual {
        padding: 40px 30px;
        min-height: 200px;
    }

    .visual-content {
        height: 120px;
    }

    .visual-food {
        font-size: 36px;
    }

    .visual-text h2 {
        font-size: 28px;
    }

    .login-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .nav {
        gap: 16px;
    }

    .notice-text {
        font-size: 18px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }
}
