/* zhousan.css - 舟山和院手机版样式 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin: 0;
}

/* 活动卡片 */
.activity-card {
    width: 100%;
    min-height: 100vh;
    padding: 15px 12px;
     background:url(/wp-content/uploads/pageimg/zhousanApril/zs.jpg) no-repeat top center;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    position: relative;
    overflow: hidden;
}

/* 顶部装饰线 */
.activity-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: white;
    background-size: 300% 100%;
    animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 活动信息区域 */
.activity-info {
    width: 100%;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

/* 活动标题 */
.activity-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    padding-bottom: 15px;
    position: relative;
}

.activity-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #feca57;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(254, 202, 87, 0.3);
}

/* 活动介绍 */
.activity-intro {
    background: white;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px 16px;
    font-size: 15px;
    line-height: 1.6;
    /*color: rgba(255, 255, 255, 0.95);*/
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: justify;
}

/* 信息网格 */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    background: white;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 18px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-item:active {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 图标 */
.info-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 信息内容 */
.info-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #feca57;
    letter-spacing: 0.5px;
}

.info-content p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    /*color: rgba(255, 255, 255, 0.9);*/
}

.time-detail {
    font-size: 13px;
    /*color: #a9f1df;*/
    font-weight: 500;
}

.phone-number {
    /*color: #feca57;*/
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* 邀请区域 */
.invitation {
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    border: 1px solid rgba(254, 202, 87, 0.3);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.invitation-icon {
    font-size: 20px;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.invitation-text {
    font-size: 16px;
    font-weight: 600;
    /*color: #fff;*/
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 红色背景区域 */
.bgred {
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 10px;
    z-index: 2;
}

.bgred:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    border-radius: 12px 12px 0 0;
}

/* 测算框 */
.cesuanbox {
    width: 100%;
}

.cesuanbox > div:first-child {
    text-align: center;
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.cesuanbox > div:nth-child(2) {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
}

.cesuanbox > div:nth-child(2) span {
    color: #ff6b6b;
    font-weight: 600;
    margin: 0 3px;
}

/* 报名框 */
.baomingbox {
    width: 100%;
}

.baomingbox p {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 15px;
    line-height: 1.4;
}

/* 表单样式 */
.form_innerp {
    width: 100%;
}

.sub_m {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.sub_m input[type="text"],
.sub_m input[type="tel"] {
    width: 100%;
    padding: 16px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.sub_m input[type="text"]:focus,
.sub_m input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.sub_m input[type="text"]::placeholder,
.sub_m input[type="tel"]::placeholder {
    color: #999;
    font-size: 15px;
}

/* 提交按钮 */
.form_innerp > a {
    display: block;
    width: 100%;
    padding: 18px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.form_innerp > a:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 按钮按下效果 */
.form_innerp > a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.form_innerp > a:active:before {
    animation: shimmer 0.8s ease;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* 页面进入动画 */
.activity-card {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 安全区域适配 */
@supports (padding: env(safe-area-inset-bottom)) {
    .container-fluid {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .bgred {
        background: #1e1e1e;
    }
    
    .cesuanbox > div:first-child {
        color: #fff;
    }
    
    .cesuanbox > div:nth-child(2) {
        color: #aaa;
    }
    
    .baomingbox p {
        color: #888;
    }
    
    .sub_m input[type="text"],
    .sub_m input[type="tel"] {
        background: #2a2a2a;
        border-color: #444;
        color: #fff;
    }
    
    .sub_m input[type="text"]::placeholder,
    .sub_m input[type="tel"]::placeholder {
        color: #888;
    }
}

/* 横屏适配 */
@media (orientation: landscape) and (max-height: 600px) {
    .activity-card {
        padding: 10px 8px;
    }
    
    .activity-info {
        padding: 10px 0;
    }
    
    .activity-intro {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .info-item {
        padding: 12px 10px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .info-content h3 {
        font-size: 16px;
    }
    
    .info-content p {
        font-size: 13px;
    }
}

/* 大屏手机适配 */
@media (min-width: 414px) and (max-height: 896px) {
    .activity-card {
        padding: 20px 16px;
    }
    
    .activity-title {
        font-size: 26px;
    }
    
    .activity-intro {
        padding: 22px 18px;
        font-size: 16px;
    }
    
    .info-item {
        padding: 20px 18px;
    }
}

/* 动画优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .info-item:hover {
        transform: none;
    }
    
    .sub_m input[type="text"]:focus,
    .sub_m input[type="tel"]:focus {
        transform: none;
    }
    
    .form_innerp > a:hover {
        transform: none;
    }
}

/* 加载优化 */
.activity-info {
    will-change: transform;
}

.info-item {
    will-change: transform, box-shadow;
}

/* 字体渲染优化 */
.activity-title,
.invitation-text {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}