/**
 * Korean Dating Website - Amanda/NOON Style
 * 韩国相亲交友网站样式
 */

/* 导入韩国字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

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

:root {
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    --gradient-hero: linear-gradient(135deg, #667EEA 0%, #764BA2 50%, #FF6B9D 100%);
    
    /* 主题色 */
    --color-primary: #667EEA;
    --color-secondary: #764BA2;
    --color-accent: #FF4458;
    --color-white: #FFFFFF;
    --color-text-dark: #333333;
    --color-text-light: #999999;
    --color-bg: #F8F9FA;
    
    /* 阴影 */
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 24px rgba(102, 126, 234, 0.4);
    
    /* 圆角 */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 50px;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--color-text-dark);
    background: var(--color-bg);
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gradient-primary);
    padding: 16px 0;
    box-shadow: var(--shadow-md);
}

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

.navbar .logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar .nav-buttons {
    display: flex;
    gap: 12px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-gradient {
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-gradient-pink {
    background: var(--gradient-secondary);
    color: var(--color-white);
}

.btn-gradient-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 107, 157, 0.4);
}

/* Hero区域 */
.hero {
    margin-top: 68px;
    padding: 100px 20px;
    background: var(--gradient-hero);
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat bottom center;
    background-size: cover;
}

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

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* 功能卡片区域 */
.features {
    padding: 80px 20px;
    background: var(--color-white);
}

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

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

.feature-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

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

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

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    margin-bottom: 28px;
    text-align: center;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-dark);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--color-text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--color-bg);
    color: var(--color-text-dark);
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E8E8E8;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.3s ease;
    background: var(--color-white);
}

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

.form-group input::placeholder {
    color: var(--color-text-light);
}

/* 性别选择器 */
.gender-selector {
    display: flex;
    gap: 12px;
}

.gender-option {
    flex: 1;
    padding: 14px;
    border: 2px solid #E8E8E8;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.gender-option:hover {
    border-color: var(--color-primary);
    background: rgba(102, 126, 234, 0.05);
}

.gender-option.selected {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-color: transparent;
}

/* 多选按钮组 */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-option {
    padding: 12px;
    border: 2px solid #E8E8E8;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.checkbox-option:hover {
    border-color: var(--color-primary);
}

.checkbox-option.selected {
    background: var(--gradient-secondary);
    color: var(--color-white);
    border-color: transparent;
}

/* 单选按钮组 */
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.radio-option {
    padding: 12px;
    border: 2px solid #E8E8E8;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.radio-option:hover {
    border-color: var(--color-primary);
}

.radio-option.selected {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-color: transparent;
}

/* 用户卡片（心动列表） */
.matches-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.matches-header {
    text-align: center;
    margin-bottom: 40px;
}

.matches-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.user-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.user-card-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    position: relative;
    overflow: hidden;
}

.user-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-card-body {
    padding: 20px;
    position: relative;
}

.user-card-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.user-card-age {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.user-card-bio {
    font-size: 14px;
    color: var(--color-text-dark);
    line-height: 1.5;
    margin-bottom: 16px;
}

.user-card-action {
    width: 100%;
    padding: 12px;
    background: var(--gradient-secondary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-card-action:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

/* 聊天界面 */
.chat-container {
    max-width: 900px;
    margin: 0 auto;
    height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
    background: var(--color-white);
}

.chat-header {
    padding: 20px 24px;
    background: var(--color-white);
    border-bottom: 1px solid #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-dark);
    padding: 8px;
}

.chat-user-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-dark);
}

.chat-status {
    font-size: 13px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

.status-dot.offline {
    background: #999;
}

/* 消息区域 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #F8F9FA;
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: messageSlideIn 0.3s ease;
}

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

.message.sent {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    word-wrap: break-word;
}

.message.received .message-bubble {
    background: var(--color-white);
    color: var(--color-text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.message.sent .message-bubble {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* 消息输入区 */
.chat-input-area {
    padding: 20px 24px;
    background: var(--color-white);
    border-top: 1px solid #E8E8E8;
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #E8E8E8;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--color-primary);
}

.chat-send-btn {
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .modal-content {
        padding: 28px 24px;
    }
    
    .navbar .logo {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group,
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .gender-selector {
        flex-direction: column;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667EEA, #764BA2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764BA2, #667EEA);
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
    display: none !important;
}

