/* GoToMarry.com 全局样式 - 浅蓝色系 */

:root {
    --primary-blue: #87CEEB;      /* 主色调 - 天蓝色 */
    --light-blue: #B0E0E6;        /* 浅蓝色 - 粉蓝 */
    --sky-blue: #E0F7FA;          /* 天空蓝 - 极浅 */
    --accent-blue: #4FC3F7;       /* 强调蓝 - 明亮 */
    --deep-blue: #81D4FA;         /* 深蓝色 - 中等 */
    --dark-text: #546E7A;         /* 深色文字 - 柔和 */
    --light-bg: #F5FBFD;          /* 浅色背景 - 淡蓝白 */
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-orange);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text-main {
    color: var(--primary-blue);
}

.logo-text-dotcom {, margin-left: 2px; }
    color: var(--light-blue);
    font-size: 16px;
}

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

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

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

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

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.btn {
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

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

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

.btn-register {
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
    color: white;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
}

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

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 22px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 40px;
}

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

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title h2 {
    font-size: 36px;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: #666;
}

/* 特性区域 */
.features {
    padding: 80px 20px;
    background: var(--white);
}

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

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: var(--light-bg);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

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

/* 推荐用户 */
.recommendations {
    padding: 80px 20px;
    background: var(--light-bg);
}

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

.user-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.user-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 4px solid var(--light-blue);
}

.user-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.user-info {
    color: #666;
    margin-bottom: 10px;
}

.user-location {
    color: #999;
    font-size: 14px;
}

/* 活动区域 */
.events-section {
    padding: 80px 20px;
    background: white;
}

.event-card {
    background: linear-gradient(135deg, var(--light-bg), white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.event-image {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 80px;
}

.event-content {
    padding: 40px;
}

.event-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.event-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.event-info-item span {
    font-size: 20px;
}

.progress-bar {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--deep-blue));
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-text {
    color: #666;
    margin-bottom: 20px;
}

/* 成功故事 */
.stories-section {
    padding: 80px 20px;
    background: var(--light-bg);
}

.story-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.story-quote {
    font-size: 60px;
    color: var(--light-blue);
    position: absolute;
    top: 20px;
    left: 30px;
    opacity: 0.3;
}

.story-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 20px;
    font-style: italic;
}

.story-author {
    text-align: right;
    color: var(--primary-blue);
    font-weight: 500;
}

/* 底部 */
.footer {
    background: var(--dark-text);
    color: white;
    padding: 60px 20px 30px;
}

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

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--light-blue);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--light-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* 表单样式 */
.form-container {
    max-width: 500px;
    margin: 120px auto 60px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

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

.form-error {
    color: #f5222d;
    font-size: 14px;
    margin-top: 5px;
}

.form-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.form-link a {
    color: var(--primary-blue);
    text-decoration: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

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

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-image {
        padding: 60px 0;
    }

    .event-info {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 消息提示 */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 8px;
    background: var(--dark-text);
    color: white;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.toast.success {
    background: #52c41a;
}

.toast.error {
    background: #f5222d;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==================== 聊天页面移动端适配 ==================== */
@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        height: calc(100vh - 70px);
        margin-top: 70px;
    }
    
    .chat-sidebar {
        width: 100%;
        height: auto;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .chat-main {
        flex: 1;
        min-height: 60vh;
    }
    
    .chat-header {
        padding: 10px 15px;
    }
    
    .chat-messages {
        padding: 10px;
    }
    
    .chat-input {
        padding: 10px;
        flex-wrap: wrap;
    }
    
    .message-content {
        max-width: 85%;
        font-size: 14px;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
    }
    
    .media-btn, .voice-btn {
        padding: 8px 12px;
        font-size: 18px;
    }
    
    .ai-chat-btn {
        padding: 15px;
        font-size: 14px;
    }
    
    .conversation-item {
        padding: 12px 15px;
    }
}

/* ==================== 忘记密码页面适配 ==================== */
@media (max-width: 768px) {
    .form-container {
        margin: 100px 15px 30px;
        padding: 25px 20px;
    }
    
    .form-title {
        font-size: 22px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 16px;
    }
}

/* ==================== 导航栏移动端优化 ==================== */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .nav-container {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .logo-text-dotcom {
        font-size: 12px;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 10px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px;
    }
    
    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 10px;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
    }
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* ==================== 首页移动端优化 ==================== */
@media (max-width: 768px) {
    .hero {
        padding: 100px 15px 50px;
    }
    
    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .features-grid, .user-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card, .user-card {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
