/* assets/css/components.css - 组件样式文件 */

/* 会议亮点组件 */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.highlight-card:hover::before {
    left: 100%;
}

.highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.highlight-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.highlight-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: 600;
}

.highlight-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 重要日期组件 */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.date-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    position: relative;
}

.date-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border-left-color: #5a67d8;
}

.date-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #374151;
    font-weight: 600;
}

.date {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.8rem;
}

.date-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 主旨报告组件 */
.keynotes-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.keynotes-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
    font-weight: 300;
}

.keynotes-info p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.keynotes-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.keynotes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.keynote-card {
    background: white;
    padding: 1.8rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.keynote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.keynote-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.keynote-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #1f2937;
    font-weight: 600;
}

.university {
    font-size: 0.85rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.topic {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

/* 子会议组件 */
.subconference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.subconference-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.subconference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.subconference-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem 2rem;
    position: relative;
}

.subconference-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #764ba2;
}

.subconference-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.subconference-content {
    padding: 2rem;
}

.subconference-content p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* 表单组件 */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-submit .btn {
    padding: 1rem 3rem;
    font-size: 1rem;
    border-radius: 50px;
}

/* 联系卡片组件 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: 600;
}

.contact-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.contact-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #5a67d8;
}

/* 地图容器 */
.map-container {
    background: #f8fafc;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    border: 1px solid #e5e7eb;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* 高亮框组件 */
.highlight-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
}

.highlight-box h4 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
}

.highlight-box li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #374151;
    line-height: 1.6;
    position: relative;
    padding-left: 2rem;
}

.highlight-box li:last-child {
    border-bottom: none;
}

.highlight-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.8rem;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 议程表组件 */
.schedule-day {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.day-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.day-content {
    padding: 2rem;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-weight: 600;
    color: #667eea;
    min-width: 100px;
    font-size: 0.9rem;
}

.schedule-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-weight: 600;
}

.schedule-details p {
    color: #6b7280;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.schedule-speaker {
    font-style: italic;
    color: #667eea;
    font-weight: 500;
}

.schedule-location {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* 通知样式 */
.notification {
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification::before {
    font-size: 1.2rem;
}

.notification-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.notification-success::before {
    content: '✅';
}

.notification-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #7f1d1d;
}

.notification-error::before {
    content: '❌';
}

.notification-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #1e3a8a;
}

.notification-info::before {
    content: 'ℹ️';
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

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

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #374151;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #374151;
    z-index: 1000;
}

/* 徽章组件 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #7f1d1d;
}