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

:root {
    --primary-color: #1e88e5;
    --secondary-color: #42a5f5;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-login {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-register {
    background: var(--primary-color);
    color: var(--white);
}

.btn-register:hover {
    background: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 80px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background: var(--bg-color);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-card p {
    color: #666;
}

/* Warehouse Section */
.warehouse {
    padding: 80px 0;
}

.warehouse-content {
    overflow: hidden; /* 清除浮动 */
}

.warehouse-content img {
    float: left; /* 图片左浮动 */
    width: 40%; /* 图片宽度40% */
    max-width: 450px; /* 最大宽度450px */
    margin-right: 30px; /* 右侧间距 */
    margin-bottom: 20px; /* 底部间距 */
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.warehouse-text {
    /* 文字会自动环绕浮动的图片 */
}

.warehouse-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.warehouse-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.warehouse-text ul {
    list-style: none;
    margin: 20px 0;
}

.warehouse-text li {
    padding: 8px 0;
    font-size: 16px;
}

/* Pricing Section */
.pricing-preview {
    padding: 80px 0;
    background: var(--white);
}

.pricing-preview h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
}

.pricing-preview > p {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--bg-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.pricing-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #ff9800;
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.price {
    font-size: 42px;
    font-weight: bold;
    margin: 20px 0;
}

.price span {
    font-size: 18px;
    font-weight: normal;
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.pricing-card.featured ul li {
    border-bottom-color: rgba(255,255,255,0.2);
}

.btn-card {
    display: inline-block;
    padding: 12px 40px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: all 0.3s;
}

.pricing-card.featured .btn-card {
    background: var(--white);
    color: var(--primary-color);
}

.btn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Company Section */
.company {
    padding: 80px 0;
}

.company-content {
    overflow: hidden; /* 清除浮动 */
}

.company-content img {
    float: right; /* 图片右浮动 */
    width: 40%; /* 图片宽度40% */
    max-width: 450px; /* 最大宽度450px */
    margin-left: 30px; /* 左侧间距 */
    margin-bottom: 20px; /* 底部间距 */
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.company-text {
    /* 文字会自动环绕浮动的图片 */
}

.company-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.company-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #bdc3c7;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    margin-bottom: 15px;
}

.footer-column a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-bottom a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }

    /* 移动端取消图片浮动，改为块级显示 */
    .warehouse-content img,
    .company-content img {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .nav-menu {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

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

.login-box {
    background: var(--white);
    border-radius: 10px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    height: 50px;
}

.login-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.phone-group {
    display: flex;
    gap: 10px;
}

.phone-group input {
    flex: 1;
}

.send-code-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.send-code-btn:hover {
    background: var(--secondary-color);
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.success-message {
    color: #4caf50;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}
