/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: #555;
    background-color: #fff9f9;
}

.wedding-section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: #d63384;
    font-size: 1.8rem;
    margin: 1.5rem 0;
    position: relative;
}

.section-title:after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #f8bbd0, #d63384, #f8bbd0);
    margin: 0.5rem auto;
}

.info-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 1rem;
}

/* 1. 古典怀表风格 */
.vintage-style .icon-wrapper {
    text-align: center;
    margin: 1rem 0;
}

.vintage-clock {
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border: 8px solid #e0c9a6;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 0 4px #d4b483,
    inset 0 0 10px rgba(0,0,0,0.2);
}

.clock-face {
    width: 100%;
    height: 100%;
    position: relative;
}

.hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: 50% 100%;
    background: #333;
}

.hour-hand {
    width: 4px;
    height: 25px;
    margin-left: -2px;
    transform: rotate(30deg);
}

.minute-hand {
    width: 3px;
    height: 35px;
    margin-left: -1.5px;
    transform: rotate(120deg);
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e83e8c;
    font-size: 1.2rem;
}

.date-display {
    text-align: center;
    margin-bottom: 1rem;
}

.date-display .year {
    font-size: 1.2rem;
    color: #888;
}

.date-display .date {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d63384;
    margin: 0.3rem 0;
    display: block;
}

.date-display .weekday {
    font-size: 1.1rem;
    color: #666;
}

.time-display {
    text-align: center;
    background: #f8e8e8;
    padding: 0.5rem;
    border-radius: 50px;
    max-width: 200px;
    margin: 0 auto;
}

.time-display i {
    color: #e83e8c;
    margin-right: 0.5rem;
}

/* 2. 现代卡片风格 */
.card-style .icon-wrapper {
    text-align: center;
    margin: 1rem 0;
}

.modern-pin {
    position: relative;
    display: inline-block;
}

.modern-pin i {
    font-size: 2.5rem;
    color: #e83e8c;
    position: relative;
    z-index: 2;
}

.pin-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(232, 62, 140, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.location-card {
    text-align: center;
}

.location-card h4 {
    font-size: 1.5rem;
    color: #d63384;
    margin-bottom: 1rem;
}

.location-card p {
    margin: 0.5rem 0;
    color: #666;
}

.location-card i {
    color: #e83e8c;
    margin-right: 0.5rem;
}

.map-preview {
    margin-top: 1rem;
    position: relative;
}

.map-preview img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
}

.map-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #4a90e2;
    text-decoration: none;
}

.map-link i {
    margin-left: 0.3rem;
    font-size: 0.8rem;
}

/* 3. 双人照片风格 */
.couple-style .icon-wrapper {
    text-align: center;
    margin: 1rem 0;
}

.double-ring {
    position: relative;
    width: 100px;
    height: 60px;
    margin: 0 auto;
}

.ring {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid;
    border-radius: 50%;
    top: 0;
}

.left-ring {
    left: 0;
    border-color: #4a90e2;
}

.right-ring {
    right: 0;
    border-color: #e83e8c;
}

.double-ring i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d63384;
    font-size: 1.5rem;
}

.contact-couple {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-person {
    flex: 1;
    min-width: 160px;
    text-align: center;
}

.photo-frame {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 1rem;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.groom-contact .photo-frame {
    border-color: #4a90e2;
}

.bride-contact .photo-frame {
    border-color: #e83e8c;
}

.contact-person h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-person p {
    margin: 0.3rem 0;
    color: #666;
}

.contact-person i {
    margin-right: 0.5rem;
    color: #888;
}

/* 4. 简约图标风格 */
.transport-style .icon-wrapper {
    text-align: center;
    margin: 1rem 0;
}

.transport-icon {
    display: inline-flex;
    gap: 1.5rem;
}

.transport-icon i {
    font-size: 2rem;
    color: white;
    background: #d63384;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.transport-icon i:nth-child(1) {
    background: #4a90e2;
}

.transport-icon i:nth-child(2) {
    background: #d63384;
}

.transport-icon i:nth-child(3) {
    background: #f5a623;
}

.transport-method {
    margin-bottom: 1.2rem;
}

.transport-method:last-child {
    margin-bottom: 0;
}

.transport-method h4 {
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.transport-method h4 i {
    margin-right: 0.5rem;
    color: #d63384;
}

.transport-method p {
    color: #666;
    margin: 0;
    padding-left: 1.8rem;
}

.groom .ring-decor {
    border-color: #4a90e2;
}

.bride .ring-decor {
    border-color: #e83e8c;
}

.avatar-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}


/* 动画效果 */
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    70% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 基础样式 */
.wedding-section {
    padding: 2rem;
    text-align: center;
}

.section-title {
    color: #d63384;
    font-size: 1.8rem;
    margin: 1.5rem 0;
    position: relative;
}

.section-title:after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #f8bbd0, #d63384, #f8bbd0);
    margin: 0.5rem auto;
}

.info-box {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}

/* 双环图标样式 */
.double-ring {
    position: relative;
    width: 100px;
    height: 60px;
    margin: 0 auto;
}

.ring {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid;
    border-radius: 50%;
    top: 0;
    animation: float 3s ease-in-out infinite;
}

.left-ring {
    left: 0;
    border-color: #4a90e2;
    animation-delay: 0s;
}

.right-ring {
    right: 0;
    border-color: #e83e8c;
    animation-delay: 0.5s;
}

.double-ring i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d63384;
    font-size: 1.5rem;
    z-index: 2;
}

/* 联系方式主体 */
.contact-couple {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-person {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 头像环绕效果 */
.avatar-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ring-decor {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed;
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

.groom .ring-decor {
    border-color: rgba(74, 144, 226, 0.6);
}

.bride .ring-decor {
    border-color: rgba(232, 62, 140, 0.6);
}

.ring-light {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 1px solid;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s ease-out infinite;
}

.groom .ring-light {
    border-color: #4a90e2;
}

.bride .ring-light {
    border-color: #e83e8c;
}

/* 联系信息 */
.contact-details {
    margin-top: 1rem;
    text-align: center;
}

.contact-details h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin: 0.3rem 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details i {
    margin-right: 0.5rem;
    color: #888;
}

/* 心形分隔符 */
.heart-separator {
    position: relative;
    color: #e83e8c;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(232, 62, 140, 0.1);
    animation: pulse 2s infinite;
}

/* 动画效果 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes heartbeat {
    0% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-50%, -50%) scale(1.1); }
    50% { transform: translate(-50%, -50%) scale(1); }
    75% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* 基础样式 */
.wedding-input-group {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;

    /* --- 新增 Flexbox 布局 --- */
    display: flex; /* 启用 Flexbox */
    flex-direction: column; /* 让子元素垂直堆叠 */
    align-items: center; /* 水平居中所有子元素 */
}

.input-wrapper {
    margin-bottom: 20px;
    position: relative;
    width: 100%; /* 确保输入框wrapper占据父容器的全部宽度 */
}

/* 共用输入框样式 */
.wedding-input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px; /* 大圆角 */
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* 姓名输入框（小） */
.name-input {
    height: 50px;
    background: #fff0f6; /* 浅粉底色 */
    border: 2px solid #ffb6d8; /* 樱花粉边框 */
}

/* 祝福输入框（大） */
.blessing-input {
    height: 150px;
    background: #fff5f9; /* 更浅的粉底色 */
    border: 2px solid #ffcce6; /* 浅粉边框 */
    resize: none; /* 禁止调整大小 */
}

/* 交互效果 */
.wedding-input:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(255, 182, 216, 0.3);
    border-color: #ff85b2; /* 聚焦时加深边框 */
}

/* 占位文字样式 */
::placeholder {
    color: #d48fb8;
    opacity: 0.8;
}

/* 按钮样式 */
.wedding-button {
    background-color: #e8a3a3; /* 柔和的粉色 */
    color: white;
    border: none;
    padding: 15px 30px; /* 保持按钮内部文字居中效果所需的padding */
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    letter-spacing: 1px;

    display: flex; /* 启用 Flexbox */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    height: 50px; /* 确保按钮高度与输入框高度一致 */
    /* 移除 width: 100%; 否则它会和 input-wrapper 的 width 冲突，
       让父容器的 align-items: center 来控制它的水平位置 */
}

.wedding-button:hover {
    background-color: #d99292; /* 悬停时稍深的粉色 */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.wedding-button:active {
    transform: translateY(0);
}